From 9dce12a447437d99c1598bebe25b2c12de964ec5 Mon Sep 17 00:00:00 2001 From: Elaine Laguerta Date: Thu, 26 Oct 2023 09:51:21 -0700 Subject: [PATCH] Add workflow for fossa analyze --- .github/workflows/fossa.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .github/workflows/fossa.yml diff --git a/.github/workflows/fossa.yml b/.github/workflows/fossa.yml new file mode 100644 index 0000000..08f2b13 --- /dev/null +++ b/.github/workflows/fossa.yml @@ -0,0 +1,25 @@ +name: FOSSA CLI Analysis +on: + push: + branches: [ $default-branch ] + pull_request: + branches: [ $default-branch ] + workflow_dispatch: + +jobs: + fossa: + runs-on: ubuntu-latest + env: + FOSSA_API_KEY: ${{secrets.FOSSA_API_KEY}} + + strategy: + fail-fast: false + + steps: + - uses: actions/checkout@v3 + + - name: Running FOSSA CLI + run: | + curl -H 'Cache-Control: no-cache' https://raw.githubusercontent.com/fossas/fossa-cli/master/install-latest.sh | bash + fossa --version + fossa analyze