Skip to content

Commit bda36e4

Browse files
committed
ci(github-actions): add zizmor gate to lint workflow
Mirrors the zizmor job homelab-ops-terraform already runs, so workflow-file changes here get the same static-analysis/security gate as the rest of the org instead of being lint-checked ad hoc.
1 parent 00b5057 commit bda36e4

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

.github/workflows/lint.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,3 +143,10 @@ jobs:
143143
with:
144144
git_ref: ${{ github.head_ref || github.ref }}
145145
files: ${{ github.event_name != 'pull_request' && 'ALL' || fromJSON(needs.detect-changes.outputs.results).yaml_all_changed_files }}
146+
147+
zizmor:
148+
needs: [detect-changes]
149+
if: ${{ github.event_name != 'pull_request' || fromJSON(needs.detect-changes.outputs.results).actions_any_changed == 'true' }}
150+
uses: ppat/github-workflows/.github/workflows/lint-zizmor.yaml@1e8ca1b00b6e69bdf5aef8b33111c594c051ff65 # v4.4.0
151+
with:
152+
git_ref: ${{ github.head_ref || github.ref }}

0 commit comments

Comments
 (0)