forked from karmada-io/karmada
-
Notifications
You must be signed in to change notification settings - Fork 2
26 lines (24 loc) · 853 Bytes
/
fossa.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
name: FOSSA
on:
push:
# Exclude branches created by Dependabot to avoid triggering current workflow
# for PRs initiated by Dependabot.
branches-ignore:
- 'dependabot/**'
permissions:
contents: read # Required by actions/checkout@v4 to fetch the repository contents.
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-22.04
steps:
- name: checkout code
uses: actions/checkout@v4
- name: Run FOSSA scan and upload build data
uses: fossas/fossa-action@v1
with:
api-key: ${{secrets.FOSSA_API_KEY}}