Skip to content

Commit 1b977df

Browse files
authored
Merge pull request #365 from jiaqiluo/28-fossa
2 parents cde741e + ff84fe8 commit 1b977df

File tree

1 file changed

+15
-15
lines changed

1 file changed

+15
-15
lines changed

.github/workflows/fossa.yaml

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -2,30 +2,30 @@ name: Run Fossa Scan
22

33
on:
44
push:
5-
tags:
6-
- '*'
5+
branches:
6+
# v1.27, v1.28, v1.29 and so on
7+
- "v1.*"
8+
# For manual scans.
9+
workflow_dispatch:
710

811
jobs:
912
fossa:
1013
runs-on: ubuntu-latest
1114
permissions:
1215
contents: read
1316
id-token: write # needed for the Vault authentication
14-
continue-on-error: true # we know that fossa test will report errors
1517
steps:
16-
- name: Load Secrets from Vault
18+
- name: Checkout
19+
uses: actions/checkout@v4
20+
21+
- name: Read FOSSA token
1722
uses: rancher-eio/read-vault-secrets@main
1823
with:
1924
secrets: |
20-
secret/data/github/repo/${{ github.repository }}/fossa/credentials token | FOSSA
21-
- name: Checkout Repo
22-
uses: actions/checkout@v4
23-
- name: Run Fossa analyze
24-
uses: fossas/[email protected]
25-
with:
26-
api-key: ${{ env.FOSSA }}
27-
- name: Run Fossa test
28-
uses: fossas/[email protected]
25+
secret/data/github/org/rancher/fossa/push token | FOSSA_API_KEY_PUSH_ONLY
26+
27+
- name: FOSSA scan
28+
uses: fossas/fossa-action@main
2929
with:
30-
api-key: ${{ env.FOSSA }}
31-
run-tests: true
30+
api-key: ${{ env.FOSSA_API_KEY_PUSH_ONLY }}
31+
run-tests: false

0 commit comments

Comments
 (0)