Skip to content

Merge pull request #246 from rancher/migrate-to-gha #1

Merge pull request #246 from rancher/migrate-to-gha

Merge pull request #246 from rancher/migrate-to-gha #1

Workflow file for this run

name: Run Fossa Scan
on:
push:
branches:
- master
tags:
- '*'
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
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
with:
api-key: ${{ env.FOSSA }}
run-tests: true