Skip to content

Commit

Permalink
Merge pull request #791 from Homebrew/sync-shared-config
Browse files Browse the repository at this point in the history
  • Loading branch information
p-linnane authored Nov 1, 2024
2 parents 2ca4e7d + 327aa3b commit 598a837
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 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 @@ -31,6 +31,8 @@ jobs:
workflow_syntax:
if: github.repository_owner == 'Homebrew'
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- name: Set up Homebrew
id: setup-homebrew
Expand Down Expand Up @@ -63,7 +65,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 598a837

Please sign in to comment.