Skip to content

Commit

Permalink
workflows/actionlint: run zizmor
Browse files Browse the repository at this point in the history
This seems like it would be useful.
  • Loading branch information
carlocab committed Oct 29, 2024
1 parent 6d25c48 commit 1e6c888
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 1e6c888

Please sign in to comment.