ci: add fork guards to scheduled workflows (#7292)

Signed-off-by: Will Pfleger <pfleger.will@gmail.com>
This commit is contained in:
Will Pfleger
2026-02-18 08:16:01 -05:00
committed by GitHub
parent 9d3792f5bf
commit 2b9eb41eec
7 changed files with 7 additions and 1 deletions
+1 -1
View File
@@ -22,7 +22,7 @@ jobs:
name: Scorecard analysis
runs-on: ubuntu-latest
# `publish_results: true` only works when run from the default branch. conditional can be removed if disabled.
if: github.event.repository.default_branch == github.ref_name || github.event_name == 'pull_request'
if: github.repository == 'block/goose' && (github.event.repository.default_branch == github.ref_name || github.event_name == 'pull_request')
permissions:
# Needed to upload the results to code-scanning dashboard.
security-events: write