Merge pull request #1650 from RainbowMango/pr_fossa_sec

Disable fossa on forked repository
This commit is contained in:
karmada-bot 2022-04-25 14:20:13 +08:00 committed by GitHub
commit 0bf2984edb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 4 deletions

View File

@ -1,12 +1,13 @@
name: FOSSA
on:
# Run this workflow every time a new commit pushed to upstream/fork repository.
# Run workflow on fork repository will help contributors find and resolve issues before sending a PR.
push:
pull_request:
jobs:
fossa:
name: FOSSA
# prevent job running from forked repository, otherwise
# 1. running on the forked repository would fail as missing necessary secret.
# 2. running on the forked repository would use unnecessary GitHub Action time.
if: ${{ github.repository == 'karmada-io/karmada' }}
runs-on: ubuntu-18.04
steps:
- name: checkout code
@ -14,4 +15,4 @@ jobs:
- name: Run FOSSA scan and upload build data
uses: fossas/fossa-action@v1
with:
api-key: 7ac0174603e25cb0a4b3ebd2e131a89f
api-key: ${{secrets.FOSSA_API_KEY}}