Skip to content

Commit ea5bf0d

Browse files
authored
Merge pull request Homebrew#195961 from Homebrew/zizmor
workflows/actionlint: run `zizmor`
2 parents 9e4a9f7 + 56d12da commit ea5bf0d

File tree

1 file changed

+29
-1
lines changed

1 file changed

+29
-1
lines changed

.github/workflows/actionlint.yml

Lines changed: 29 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ env:
2626
jobs:
2727
workflow_syntax:
2828
if: github.repository_owner == 'Homebrew'
29-
runs-on: ubuntu-22.04
29+
runs-on: ubuntu-latest
3030
container:
3131
image: ghcr.io/homebrew/ubuntu22.04:master
3232
steps:
@@ -57,3 +57,31 @@ jobs:
5757
echo "::add-matcher::$HOME/actionlint-matcher.json"
5858
5959
- run: actionlint
60+
61+
zizmor:
62+
if: github.repository_owner == 'Homebrew'
63+
runs-on: ubuntu-latest
64+
container:
65+
image: ghcr.io/homebrew/ubuntu22.04:master
66+
steps:
67+
- name: Set up Homebrew
68+
id: setup-homebrew
69+
uses: Homebrew/actions/setup-homebrew@master
70+
with:
71+
core: true
72+
cask: false
73+
test-bot: false
74+
75+
- name: Install zizmor
76+
run: brew install zizmor
77+
78+
- name: Run zizmor
79+
run: zizmor --format sarif "${HOMEBREW_TAP_REPOSITORY}" | tee results.sarif
80+
env:
81+
HOMEBREW_TAP_REPOSITORY: ${{ steps.setup-homebrew.outputs.repository-path }}
82+
83+
- name: Upload SARIF file
84+
uses: github/codeql-action/upload-sarif@v3
85+
with:
86+
sarif_file: results.sarif
87+
category: zizmor

0 commit comments

Comments
 (0)