Skip to content

Commit

Permalink
update the workflow for FOSSA
Browse files Browse the repository at this point in the history
  • Loading branch information
jiaqiluo committed May 29, 2024
1 parent ff4007c commit e2ca96c
Showing 1 changed file with 14 additions and 15 deletions.
29 changes: 14 additions & 15 deletions .github/workflows/fossa.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,30 +2,29 @@ name: Run Fossa Scan

on:
push:
tags:
- '*'
branches:
- "v1.29"
# For manual scans.
workflow_dispatch:

jobs:
fossa:
runs-on: ubuntu-latest
permissions:
contents: read
id-token: write # needed for the Vault authentication
continue-on-error: true # we know that fossa test will report errors
steps:
- name: Load Secrets from Vault
- name: Checkout
uses: actions/checkout@v4

- name: Read FOSSA token
uses: rancher-eio/read-vault-secrets@main
with:
secrets: |
secret/data/github/repo/${{ github.repository }}/fossa/credentials token | FOSSA
- name: Checkout Repo
uses: actions/checkout@v4
- name: Run Fossa analyze
uses: fossas/fossa-action@v1.3.3
with:
api-key: ${{ env.FOSSA }}
- name: Run Fossa test
uses: fossas/fossa-action@v1.3.3
secret/data/github/org/rancher/fossa/push token | FOSSA_API_KEY_PUSH_ONLY
- name: FOSSA scan
uses: fossas/fossa-action@main
with:
api-key: ${{ env.FOSSA }}
run-tests: true
api-key: ${{ env.FOSSA_API_KEY_PUSH_ONLY }}
run-tests: false

0 comments on commit e2ca96c

Please sign in to comment.