Skip to content

Commit db47359

Browse files
authored
Prevent actions from running in forks (#3938)
* Prevent actions from running in forks * Improve conditional check
1 parent bfd6170 commit db47359

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

.github/workflows/codeql.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ on:
2121

2222
jobs:
2323
analyze:
24+
if: github.event.repository.fork == false
2425
name: Analyze (${{ matrix.language }})
2526
# Runner size impacts CodeQL analysis time. To learn more, please see:
2627
# - https://gh.io/recommended-hardware-resources-for-running-codeql

.github/workflows/stale.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ permissions:
1414
jobs:
1515
close-stale:
1616
runs-on: ubuntu-latest
17+
if: github.event.repository.fork == false
1718
name: Close stale Issues and PRs
1819

1920
steps:

0 commit comments

Comments
 (0)