File tree Expand file tree Collapse file tree 1 file changed +39
-0
lines changed
Expand file tree Collapse file tree 1 file changed +39
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Feature branch tofu checks (containerized)
2+
3+ on :
4+ push :
5+ branches :
6+ - " feature/**"
7+
8+ permissions :
9+ contents : read
10+ packages : read
11+
12+ jobs :
13+ tofu-checks :
14+ runs-on : ubuntu-latest
15+
16+ steps :
17+ - name : Checkout repository
18+ uses : actions/checkout@v4
19+ with :
20+ fetch-depth : 0
21+
22+ # Required if the GHCR image is private
23+ - name : Log in to GHCR
24+ env :
25+ GHCR_TOKEN : ${{ github.token }}
26+ run : |
27+ docker login ghcr.io -u "${{ github.actor }}" --password-stdin <<< "$GHCR_TOKEN"
28+
29+ - name : Pull OpenTofu tools image
30+ run : |
31+ docker pull ghcr.io/noahwhite/ghost-stack-shell:latest
32+
33+ - name : Run tofu fmt check (recursive)
34+ run : |
35+ docker run --rm \
36+ -v "${GITHUB_WORKSPACE}:/home/devops/app" \
37+ -w /home/devops/app \
38+ ghcr.io/noahwhite/ghost-stack-shell:latest \
39+ tofu fmt -check -recursive
You can’t perform that action at this time.
0 commit comments