[CI] Guard code scanning workflows for main repo only
This commit is contained in:
1
.github/workflows/codeql.yml
vendored
1
.github/workflows/codeql.yml
vendored
@@ -18,6 +18,7 @@ jobs:
|
||||
# - https://gh.io/using-larger-runners
|
||||
# Consider using larger runners for possible analysis time improvements.
|
||||
runs-on: 'ubuntu-latest'
|
||||
if: github.repository == 'spring-projects/spring-pulsar'
|
||||
timeout-minutes: 360
|
||||
permissions:
|
||||
actions: read
|
||||
|
||||
1
.github/workflows/trivy-scan.yml
vendored
1
.github/workflows/trivy-scan.yml
vendored
@@ -7,6 +7,7 @@ jobs:
|
||||
run_trivy_scan:
|
||||
name: Run Trivy Scan
|
||||
runs-on: ubuntu-latest
|
||||
if: github.repository == 'spring-projects/spring-pulsar'
|
||||
env:
|
||||
LOCAL_REPOSITORY_PATH: ./build/publications/repos
|
||||
steps:
|
||||
|
||||
Reference in New Issue
Block a user