mirror of
https://github.com/rancher/k3k.git
synced 2026-04-06 02:36:55 +00:00
35 lines
1010 B
YAML
35 lines
1010 B
YAML
name: FOSSA Scanning
|
|
|
|
on:
|
|
push:
|
|
branches: ["main", "release/**"]
|
|
workflow_dispatch:
|
|
|
|
permissions:
|
|
contents: read
|
|
id-token: write
|
|
|
|
jobs:
|
|
fossa-scanning:
|
|
runs-on: ubuntu-latest
|
|
timeout-minutes: 30
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
|
|
|
|
# The FOSSA token is shared between all repos in Rancher's GH org. It can be
|
|
# used directly and there is no need to request specific access to EIO.
|
|
- name: Read FOSSA token
|
|
uses: rancher-eio/read-vault-secrets@0da85151ad1f19ed7986c41587e45aac1ace74b6 # v3
|
|
with:
|
|
secrets: |
|
|
secret/data/github/org/rancher/fossa/push token | FOSSA_API_KEY_PUSH_ONLY
|
|
|
|
- name: FOSSA scan
|
|
uses: fossas/fossa-action@c414b9ad82eaad041e47a7cf62a4f02411f427a0 # v1.8.0
|
|
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
|