mirror of
https://github.com/optim-enterprises-bv/vault.git
synced 2025-11-02 03:27:54 +00:00
Skip security-scan and test comment notifications on community PRs (#22351)
This commit is contained in:
6
.github/workflows/ci.yml
vendored
6
.github/workflows/ci.yml
vendored
@@ -357,7 +357,11 @@ jobs:
|
||||
needs.test-go-fips.result == 'success' ||
|
||||
needs.test-go-fips.result == 'failure' ||
|
||||
needs.test-go-race.result == 'success' ||
|
||||
needs.test-go-race.result == 'failure')
|
||||
needs.test-go-race.result == 'failure') &&
|
||||
(github.repository == 'hashicorp/vault' &&
|
||||
(github.event.pull_request.head.repo.full_name == github.event.pull_request.base.repo.full_name))
|
||||
# The last check ensures this doesn't run on community-contributed PRs, who
|
||||
# won't have the permissions to run this job.
|
||||
needs:
|
||||
- test-go
|
||||
- test-go-fips
|
||||
|
||||
5
.github/workflows/security-scan.yml
vendored
5
.github/workflows/security-scan.yml
vendored
@@ -11,7 +11,10 @@ on:
|
||||
jobs:
|
||||
scan:
|
||||
runs-on: ['linux', 'large']
|
||||
if: ${{ github.actor != 'dependabot[bot]' || github.actor != 'hc-github-team-secure-vault-core' }}
|
||||
# The first check ensures this doesn't run on community-contributed PRs, who
|
||||
# won't have the permissions to run this job.
|
||||
if: ${{ (github.repository == 'hashicorp/vault' && (github.event.pull_request.head.repo.full_name == github.event.pull_request.base.repo.full_name))
|
||||
&& (github.actor != 'dependabot[bot]' || github.actor != 'hc-github-team-secure-vault-core') }}
|
||||
steps:
|
||||
- uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3
|
||||
|
||||
|
||||
Reference in New Issue
Block a user