mirror of https://github.com/rancher/cli.git
34 lines
640 B
YAML
34 lines
640 B
YAML
name: FOSSA
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
push:
|
|
tags:
|
|
- v*
|
|
branches:
|
|
- v*
|
|
- main
|
|
|
|
jobs:
|
|
fossa:
|
|
runs-on: ubuntu-latest
|
|
|
|
permissions:
|
|
contents: read
|
|
id-token: write # needed for the Vault authentication
|
|
|
|
steps:
|
|
- name: Checkout Repo
|
|
uses: actions/checkout@v3
|
|
|
|
- name: Load Secrets from Vault
|
|
uses: rancher-eio/read-vault-secrets@main
|
|
with:
|
|
secrets: |
|
|
secret/data/github/org/rancher/fossa/push token | FOSSA
|
|
|
|
- name: Check FOSSA compliance
|
|
uses: fossas/fossa-action@main
|
|
with:
|
|
api-key: ${{ env.FOSSA }}
|