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: jobs:
deny: deny:
runs-on: ubuntu-latest runs-on: ubuntu-latest
if: github.repository == 'block/goose'
permissions: permissions:
contents: read contents: read
steps: steps:
+1
View File
@@ -11,6 +11,7 @@ on:
jobs: jobs:
release: release:
if: github.repository == 'block/goose'
uses: ./.github/workflows/create-release-pr.yaml uses: ./.github/workflows/create-release-pr.yaml
with: with:
bump_type: "minor" bump_type: "minor"
@@ -23,6 +23,7 @@ concurrency:
jobs: jobs:
rebuild-docs: rebuild-docs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
if: github.repository == 'block/goose'
permissions: permissions:
contents: write contents: write
+1 -1
View File
@@ -22,7 +22,7 @@ jobs:
name: Scorecard analysis name: Scorecard analysis
runs-on: ubuntu-latest runs-on: ubuntu-latest
# `publish_results: true` only works when run from the default branch. conditional can be removed if disabled. # `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: permissions:
# Needed to upload the results to code-scanning dashboard. # Needed to upload the results to code-scanning dashboard.
security-events: write security-events: write
+1
View File
@@ -24,6 +24,7 @@ jobs:
stale: stale:
name: 'Mark and Close Stale PRs' name: 'Mark and Close Stale PRs'
runs-on: ubuntu-latest runs-on: ubuntu-latest
if: github.repository == 'block/goose'
steps: steps:
# Use the official stale action from GitHub # Use the official stale action from GitHub
@@ -9,6 +9,7 @@ on:
jobs: jobs:
update-leaderboard: update-leaderboard:
runs-on: ubuntu-latest runs-on: ubuntu-latest
if: github.repository == 'block/goose'
permissions: permissions:
contents: read contents: read
pull-requests: read pull-requests: read
@@ -23,6 +23,7 @@ jobs:
update-dashboard: update-dashboard:
name: 'Update Health Dashboard' name: 'Update Health Dashboard'
runs-on: ubuntu-latest runs-on: ubuntu-latest
if: github.repository == 'block/goose'
steps: steps:
- name: 'Download previous metrics' - name: 'Download previous metrics'