Files
threshold/.github/workflows/enos-fmt.yml
T
hashicorp-tsccr[bot]andhashicorp-tsccr[bot] b5ae6f0ceb Result of tsccr-helper -log-level=info -pin-all-workflows . (#3968)
Co-authored-by: hashicorp-tsccr[bot] <hashicorp-tsccr[bot]@users.noreply.github.com>
2023-11-01 10:08:02 -04:00

31 lines
1.1 KiB
YAML

---
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@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
- uses: hashicorp/setup-terraform@633666f66e0061ca3b725c73b2ec20cd13a8fdd1 # 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