Skip to content

Commit

Permalink
ci: prevent OSSF analysis workflow from running in forks (#3652)
Browse files Browse the repository at this point in the history
* Run OSSF analysis only on default branch

* move on top to match project code style

---------

Co-authored-by: Alexandr <qwerty541zxc@gmail.com>
  • Loading branch information
harryzcy and qwerty541 authored Mar 5, 2024
1 parent 9ea7535 commit 8282afb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/ossf-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ permissions: read-all

jobs:
analysis:
if: github.repository == 'anuraghazra/github-readme-stats'
name: Scorecard analysis
runs-on: ubuntu-latest
permissions:
Expand Down

0 comments on commit 8282afb

Please sign in to comment.