Merge pull request #10988 from bestlong/bestlong-patch-1

Ensure schedule analysis job never runs on forked repos
This commit is contained in:
snipe 2022-06-13 19:45:36 -07:00 committed by GitHub
commit 4d773829f8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -19,6 +19,8 @@ on:
jobs: jobs:
codacy-security-scan: codacy-security-scan:
# Ensure schedule job never runs on forked repos. It's only executed for 'snipe/snipe-it'
if: (github.repository == 'snipe/snipe-it') || ((github.repository != 'snipe/snipe-it') && (github.event_name != 'schedule'))
name: Codacy Security Scan name: Codacy Security Scan
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps: