Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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