Skip to content

Commit

Permalink
workflows/actionlint: run zizmor
Browse files Browse the repository at this point in the history
  • Loading branch information
carlocab committed Oct 30, 2024
1 parent 0e24ee2 commit f234e66
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/actionlint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,3 +53,31 @@ jobs:
echo "::add-matcher::.github/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 f234e66

Please sign in to comment.