Skip to content

Commit

Permalink
Merge pull request #195961 from Homebrew/zizmor
Browse files Browse the repository at this point in the history
workflows/actionlint: run `zizmor`
  • Loading branch information
carlocab authored Oct 30, 2024
2 parents 9e4a9f7 + 56d12da commit ea5bf0d
Showing 1 changed file with 29 additions and 1 deletion.
30 changes: 29 additions & 1 deletion .github/workflows/actionlint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ env:
jobs:
workflow_syntax:
if: github.repository_owner == 'Homebrew'
runs-on: ubuntu-22.04
runs-on: ubuntu-latest
container:
image: ghcr.io/homebrew/ubuntu22.04:master
steps:
Expand Down Expand Up @@ -57,3 +57,31 @@ jobs:
echo "::add-matcher::$HOME/actionlint-matcher.json"
- run: actionlint

zizmor:
if: github.repository_owner == 'Homebrew'
runs-on: ubuntu-latest
container:
image: ghcr.io/homebrew/ubuntu22.04:master
steps:
- name: Set up Homebrew
id: setup-homebrew
uses: Homebrew/actions/setup-homebrew@master
with:
core: true
cask: false
test-bot: false

- name: Install zizmor
run: brew install zizmor

- name: Run zizmor
run: zizmor --format sarif "${HOMEBREW_TAP_REPOSITORY}" | tee results.sarif
env:
HOMEBREW_TAP_REPOSITORY: ${{ steps.setup-homebrew.outputs.repository-path }}

- name: Upload SARIF file
uses: github/codeql-action/upload-sarif@v3
with:
sarif_file: results.sarif
category: zizmor

0 comments on commit ea5bf0d

Please sign in to comment.