fix: update condition for security scans to handle pull request forks correctly

This commit is contained in:
GitHub Actions
2026-02-08 05:43:33 +00:00
parent 8c140a4eff
commit 02807cd425

View File

@@ -545,7 +545,7 @@ jobs:
runs-on: ubuntu-latest
needs:
- codecov-gate
if: inputs.run_security_scans != false && env.IS_FORK != 'true'
if: inputs.run_security_scans != false && (github.event_name != 'pull_request' || github.event.pull_request.head.repo.fork != true)
permissions:
contents: read
security-events: write