Ensure analysis job never runs on forked repos

This commit is contained in:
Shao Yu-Lung (Allen) 2022-04-28 16:51:53 +08:00 committed by GitHub
parent 0abc108686
commit 2cd7c7a357
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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