mirror of
https://github.com/kyverno/kyverno.git
synced 2024-12-14 11:57:48 +00:00
f924cdd022
Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com> Co-authored-by: shuting <shuting@nirmata.com>
39 lines
1 KiB
YAML
39 lines
1 KiB
YAML
name: FOSSA
|
|
|
|
permissions: {}
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
|
|
concurrency:
|
|
group: ${{ github.workflow }}-${{ github.ref }}
|
|
cancel-in-progress: true
|
|
|
|
jobs:
|
|
fossa-scan:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
|
|
- name: Check secret
|
|
id: checksecret
|
|
uses: ./.github/actions/is-defined
|
|
with:
|
|
value: ${{ secrets.FOSSA_API_KEY }}
|
|
- name: Setup caches
|
|
uses: ./.github/actions/setup-caches
|
|
timeout-minutes: 5
|
|
continue-on-error: true
|
|
- name: Setup build env
|
|
if: steps.checksecret.outputs.result == 'true'
|
|
uses: ./.github/actions/setup-build-env
|
|
timeout-minutes: 10
|
|
with:
|
|
free-disk-space: false
|
|
- name: Run FOSSA analysis
|
|
if: steps.checksecret.outputs.result == 'true'
|
|
uses: fossas/fossa-action@f61a4c0c263690f2ddb54b9822a719c25a7b608f # v1.3.1
|
|
with:
|
|
api-key: ${{ secrets.FOSSA_API_KEY }}
|