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 ZhengandAlexandr authored and GitHub committed 2024-03-05 05:27:18 +02:00
1 parent 9ea7535e5b
commit 8282afb486
1 file changed
+1
+1
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: