Skip to content

Commit

Permalink
Merge pull request #364 from jiaqiluo/fossa
Browse files Browse the repository at this point in the history
  • Loading branch information
jiaqiluo committed Jun 7, 2024
2 parents ff4007c + acbf3cf commit bd937e1
Showing 1 changed file with 15 additions and 15 deletions.
30 changes: 15 additions & 15 deletions .github/workflows/fossa.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,30 +2,30 @@ name: Run Fossa Scan

on:
push:
tags:
- '*'
branches:
# v1.27, v1.28, v1.29 and so on
- "v1.*"
# 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 bd937e1

Please sign in to comment.