Skip to content

Commit

Permalink
ci: avoid running some actions on forks (#26937)
Browse files Browse the repository at this point in the history
  • Loading branch information
ceddy4395 committed Apr 26, 2024
1 parent 57e1a60 commit 4173b7a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/reproduire-close.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ permissions:
jobs:
stale:
runs-on: ubuntu-latest
if: github.event_name == 'workflow_dispatch' || github.repository == 'nuxt/nuxt'
steps:
- uses: actions/stale@28ca1036281a5e5922ead5184a1bbf96e5fc984e # v9.0.0
with:
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/scorecards.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ jobs:
id-token: write
contents: read
actions: read
if: github.event_name == 'push' || github.repository == 'nuxt/nuxt'

steps:
- name: "Checkout code"
Expand Down Expand Up @@ -59,6 +60,7 @@ jobs:
# format to the repository Actions tab.
- name: "Upload artifact"
uses: actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808 # v4.3.3
if: github.repository == 'nuxt/nuxt' && success()
with:
name: SARIF file
path: results.sarif
Expand All @@ -67,5 +69,6 @@ jobs:
# Upload the results to GitHub's code scanning dashboard.
- name: "Upload to code-scanning"
uses: github/codeql-action/upload-sarif@d39d31e687223d841ef683f52467bd88e9b21c14 # v3.25.3
if: github.repository == 'nuxt/nuxt' && success()
with:
sarif_file: results.sarif

0 comments on commit 4173b7a

Please sign in to comment.