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
View File
@@ -18,6 +18,7 @@ on:
jobs:
deny:
runs-on: ubuntu-latest
if: github.repository == 'block/goose'
permissions:
contents: read
steps:
+1
View File
@@ -11,6 +11,7 @@ on:
jobs:
release:
if: github.repository == 'block/goose'
uses: ./.github/workflows/create-release-pr.yaml
with:
bump_type: "minor"
@@ -23,6 +23,7 @@ concurrency:
jobs:
rebuild-docs:
runs-on: ubuntu-latest
if: github.repository == 'block/goose'
permissions:
contents: write
+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
+1
View File
@@ -24,6 +24,7 @@ jobs:
stale:
name: 'Mark and Close Stale PRs'
runs-on: ubuntu-latest
if: github.repository == 'block/goose'
steps:
# Use the official stale action from GitHub
@@ -9,6 +9,7 @@ on:
jobs:
update-leaderboard:
runs-on: ubuntu-latest
if: github.repository == 'block/goose'
permissions:
contents: read
pull-requests: read
@@ -23,6 +23,7 @@ jobs:
update-dashboard:
name: 'Update Health Dashboard'
runs-on: ubuntu-latest
if: github.repository == 'block/goose'
steps:
- name: 'Download previous metrics'