-
Notifications
You must be signed in to change notification settings - Fork 291
30 lines (27 loc) · 1.08 KB
/
enos-fmt.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
---
name: enos_fmt
on:
pull_request:
paths:
- enos/**
permissions:
contents: read
jobs:
fmt_check:
# Only run this workflow on pull requests from hashicorp/boundary branches
# as we need secrets to install enos.
if: github.event.pull_request.head.repo.fork != 'true'
runs-on: ${{ fromJSON(vars.RUNNER) }}
env:
GITHUB_TOKEN: ${{ secrets.SERVICE_USER_GITHUB_TOKEN }}
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
- uses: hashicorp/setup-terraform@a1502cd9e758c50496cc9ac5308c4843bcd56d36 # TSCCR: loading action configs: failed to query HEAD reference: failed to get advertised references: authorization failed
with:
terraform_wrapper: false
- uses: hashicorp/action-setup-enos@v1 # TSCCR: loading action configs: failed to query HEAD reference: failed to get advertised references: authorization failed
with:
github-token: ${{ secrets.SERVICE_USER_GITHUB_TOKEN }}
- name: "check formatting"
working-directory: ./enos
run: make check-fmt