32 lines
1.2 KiB
YAML
32 lines
1.2 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@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3
|
|
- 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
|
|
terraform_version: 1.5.7 # QT-623: pin to terraform 1.5.x until a tfjson bug is resolved
|
|
- 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
|