mirror of
https://github.com/jlengrand/error-prone-support.git
synced 2026-03-10 08:11:25 +00:00
Skip SonarCloud analysis of PRs from forked repositories (#926)
Because such analysis will fail due to unavailability of the relevant secrets. Working around this is nontrivial and a likely source of security issues.
This commit is contained in:
committed by
GitHub
parent
7c2078b771
commit
ff3be8ae3f
3
.github/workflows/sonarcloud.yml
vendored
3
.github/workflows/sonarcloud.yml
vendored
@@ -11,6 +11,9 @@ permissions:
|
||||
contents: read
|
||||
jobs:
|
||||
analyze:
|
||||
# Analysis of code in forked repositories is skipped, as such workflow runs
|
||||
# do not have access to the requisite secrets.
|
||||
if: github.event.pull_request.head.repo.full_name == github.repository
|
||||
permissions:
|
||||
contents: read
|
||||
runs-on: ubuntu-22.04
|
||||
|
||||
Reference in New Issue
Block a user