File tree Expand file tree Collapse file tree 1 file changed +15
-15
lines changed Expand file tree Collapse file tree 1 file changed +15
-15
lines changed Original file line number Diff line number Diff line change @@ -2,30 +2,30 @@ name: Run Fossa Scan
2
2
3
3
on :
4
4
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 :
7
10
8
11
jobs :
9
12
fossa :
10
13
runs-on : ubuntu-latest
11
14
permissions :
12
15
contents : read
13
16
id-token : write # needed for the Vault authentication
14
- continue-on-error : true # we know that fossa test will report errors
15
17
steps :
16
- - name : Load Secrets from Vault
18
+ - name : Checkout
19
+ uses : actions/checkout@v4
20
+
21
+ - name : Read FOSSA token
17
22
uses : rancher-eio/read-vault-secrets@main
18
23
with :
19
24
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
-
25
- with :
26
- api-key : ${{ env.FOSSA }}
27
- - name : Run Fossa test
28
-
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
29
29
with :
30
- api-key : ${{ env.FOSSA }}
31
- run-tests : true
30
+ api-key : ${{ env.FOSSA_API_KEY_PUSH_ONLY }}
31
+ run-tests : false
You can’t perform that action at this time.
0 commit comments