ci: prevent OSSF analysis workflow from running in forks (#3652)

* Run OSSF analysis only on default branch

* move on top to match project code style

---------

Co-authored-by: Alexandr <qwerty541zxc@gmail.com>
This commit is contained in:
Chongyi Zheng 2024-03-04 22:27:18 -05:00 committed by GitHub
parent 9ea7535e5b
commit 8282afb486
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -11,6 +11,7 @@ permissions: read-all
jobs:
analysis:
if: github.repository == 'anuraghazra/github-readme-stats'
name: Scorecard analysis
runs-on: ubuntu-latest
permissions: