[CI] Guard code scanning workflows for main repo only

This commit is contained in:
Chris Bono
2023-12-11 00:32:56 -06:00
parent b67326e12e
commit 843e02ce65
2 changed files with 2 additions and 0 deletions

View File

@@ -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

View File

@@ -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: