ci: add fork guards to scheduled workflows (#7292)
Signed-off-by: Will Pfleger <pfleger.will@gmail.com>
This commit is contained in:
@@ -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:
|
||||||
|
|||||||
@@ -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
|
||||||
|
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
@@ -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'
|
||||||
|
|||||||
Reference in New Issue
Block a user