Skip to content

Commit

Permalink
actionlint.yml: update to match main configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
BrewTestBot committed Oct 31, 2024
1 parent ab0b2b9 commit 319e606
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/actionlint.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# This file is synced from the `.github` repository, do not modify it directly.
name: Workflow Syntax
name: Actionlint

on:
push:
Expand Down Expand Up @@ -45,7 +45,7 @@ jobs:

- uses: actions/checkout@v4
with:
persist-credentials: false
persist-credentials: ${{ github.event.repository.private }}

- run: zizmor --format sarif . >results.sarif

Expand All @@ -63,7 +63,11 @@ jobs:
upload_sarif:
needs: workflow_syntax
# We want to always upload this even if `actionlint` failed.
if: always() && !contains(fromJSON('[["cancelled", "skipped"]]'), needs.workflow_syntax.result)
# This is only available on public repositories.
if: >
always() &&
!contains(fromJSON('[["cancelled", "skipped"]]'), needs.workflow_syntax.result) &&
!github.event.repository.private
runs-on: ubuntu-latest
permissions:
contents: read
Expand Down

0 comments on commit 319e606

Please sign in to comment.