Skip to content

Commit 9e07254

Browse files
authored
Add FOSSA scanning workflow (#1232)
Signed-off-by: Guilherme Macedo <guilherme@gmacedo.com>
1 parent c7792e3 commit 9e07254

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

.github/workflows/fossa.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: FOSSA Scanning
2+
3+
on:
4+
push:
5+
branches: ["main", "master", "release/**"]
6+
workflow_dispatch:
7+
8+
permissions:
9+
contents: read
10+
id-token: write
11+
12+
jobs:
13+
fossa-scanning:
14+
runs-on: ubuntu-latest
15+
timeout-minutes: 30
16+
steps:
17+
- name: Checkout
18+
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6
19+
20+
# The FOSSA token is shared between all repos in Rancher's GH org. It can be
21+
# used directly and there is no need to request specific access to EIO.
22+
- name: Read FOSSA token
23+
uses: rancher-eio/read-vault-secrets@main
24+
with:
25+
secrets: |
26+
secret/data/github/org/rancher/fossa/push token | FOSSA_API_KEY_PUSH_ONLY
27+
28+
- name: FOSSA scan
29+
uses: fossas/fossa-action@main
30+
with:
31+
api-key: ${{ env.FOSSA_API_KEY_PUSH_ONLY }}
32+
# Only runs the scan and do not provide/returns any results back to the
33+
# pipeline.
34+
run-tests: false

0 commit comments

Comments
 (0)