Skip to content

[v0.4] [GHA] Move fossa checking to GHA for v0.4 #14

[v0.4] [GHA] Move fossa checking to GHA for v0.4

[v0.4] [GHA] Move fossa checking to GHA for v0.4 #14

Workflow file for this run

# Adapted from https://github.com/rancher/security-team/blob/main/docs/guides/fossa-gha-workflow.md
name: FOSSA Scanning
on:
# List the branches that must be scanned when a push event happens.
push:
branches: ["master", "release/v*"]
pull_request:
# For manual scans.
workflow_dispatch:
permissions:
# Basic read access needed.
contents: read
# Required to authenticate in EIO's Vault.
id-token: write
jobs:
fossa-scanning:
# We're running inside a public repo, so use the public provided GH runners.
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Read FOSSA token
uses: rancher-eio/read-vault-secrets@main
with:
secrets: |
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_API_KEY_PUSH_ONLY }}
# Only runs the scan and do not provide/returns any results back to the
# pipeline.
run-tests: false