File tree Expand file tree Collapse file tree 5 files changed +47
-3
lines changed
Expand file tree Collapse file tree 5 files changed +47
-3
lines changed Original file line number Diff line number Diff line change 7474 shell : bash
7575 run : |
7676 mkdir output
77- echo '${{ steps.prev-version.outputs.result }}' > output/previous-version.txt
78- echo '${{ steps.new-version.outputs.result }}' > output/new-version.txt
77+ echo '${PREV_VERSION}' > output/previous-version.txt
78+ echo '${NEW_VERSION}' > output/new-version.txt
79+ env :
80+ PREV_VERSION : " ${{ steps.prev-version.outputs.result }}"
81+ NEW_VERSIION : " ${{ steps.new-version.outputs.result }}"
7982 - name : Upload version artifacts
8083 uses : actions/upload-artifact@v4
8184 with :
Original file line number Diff line number Diff line change 44- push
55- pull_request
66
7+ permissions : {}
8+
79jobs :
810 matrixify :
911 name : Matrixify
1820 with :
1921 ignore_dir : " **/example**"
2022 - name : Outputs
21- run : echo "${{ steps.search.outputs.matrix }}"
23+ run : echo "${OUTPUTS_MATRIX}"
24+ env :
25+ OUTPUTS_MATRIX : ${{ steps.search.outputs.matrix }}
2226
2327 terraform-ci :
2428 name : Terraform CI on "${{ matrix.directory }}"
Original file line number Diff line number Diff line change 3131 ref : ${{ github.event.pull_request.head.ref }}
3232 # I'm getting the labels from the API and not the context("contains(github.event.pull_request.labels.*.name, 'Env Promote')") as the labels
3333 # are added in 2nd API call so they aren't included in the PR context
34+ persist-credentials : false
3435 - name : Check PR labels for semver
3536 id : check_pr_label
3637 env :
@@ -147,6 +148,7 @@ jobs:
147148 uses : actions/checkout@v4
148149 with :
149150 ref : main # Only use composite action from main to prevent malicious PRs
151+ persist-credentials : false
150152 # Do the per-module steps in a composite action because matrixes can't handle dynamic outputs
151153 - name : Generate docs and version bump
152154 uses : mozilla/terraform-modules/.github/actions@main
Original file line number Diff line number Diff line change 1+ # https://github.com/woodruffw/zizmor
2+ name : GitHub Actions Security Analysis with Zizmor
3+
4+ on :
5+ push :
6+ branches : ["main"]
7+ pull_request :
8+ branches : ["*"]
9+
10+ concurrency :
11+ group : ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
12+ cancel-in-progress : true
13+
14+ permissions : {}
15+
16+ jobs :
17+ zizmor :
18+ name : Zizmor latest via Cargo
19+ runs-on : ubuntu-latest
20+ steps :
21+ - name : Clone Repository
22+ uses : actions/checkout@v4
23+ with :
24+ persist-credentials : false
25+
26+ - run : python -m pip install zizmor
27+ shell : bash
28+ - name : Run zizmor
29+ run : zizmor .
Original file line number Diff line number Diff line change 2222 - id : terraform_fmt
2323 exclude : \.terraform\/.*$
2424 - id : terraform_docs
25+ - repo : https://github.com/woodruffw/zizmor-pre-commit
26+ # Zizmor version.
27+ rev : v1.5.2
28+ hooks :
29+ # Run the linter.
30+ - id : zizmor
You can’t perform that action at this time.
0 commit comments