mirror of
https://github.com/kyverno/kyverno.git
synced 2024-12-14 11:57:48 +00:00
d56ea86146
Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com> Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>
35 lines
910 B
YAML
35 lines
910 B
YAML
name: FOSSA
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
pull_request:
|
|
branches:
|
|
- main
|
|
|
|
concurrency:
|
|
group: ${{ github.workflow }}-${{ github.ref }}
|
|
cancel-in-progress: true
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3.3.0
|
|
- name: Setup build env
|
|
uses: ./.github/actions/setup-build-env
|
|
- name: Run FOSSA analysis
|
|
env:
|
|
# FOSSA Push-Only API Token
|
|
FOSSA_API_KEY: '760a966bd1687152ecfe23386d841df4'
|
|
run: |
|
|
export GOPATH=$HOME/go
|
|
export PATH=$PATH:$(go env GOPATH)/bin
|
|
curl -H 'Cache-Control: no-cache' https://raw.githubusercontent.com/fossas/fossa-cli/f90d8f6ea32a55bc3b08d557590066b820a7c1b8/install-latest.sh | bash # v3.5.2
|
|
fossa init
|
|
fossa analyze
|