diff --git a/.github/workflows/fossa.yml b/.github/workflows/fossa.yml new file mode 100644 index 0000000..d5cd861 --- /dev/null +++ b/.github/workflows/fossa.yml @@ -0,0 +1,30 @@ +name: FOSSA + +on: + push: + branches: [ 'main' ] + pull_request: + # The branches below must be a subset of the branches above + branches: [ 'main' ] + +jobs: + fossa: + runs-on: ubuntu-latest + + steps: + - name: Checkout repository + uses: actions/checkout@v5 + + - name: Install FOSSA CLI + run: | + curl -H 'Cache-Control: no-cache' https://raw.githubusercontent.com/fossas/fossa-cli/master/install-latest.sh | bash + + - name: Set FOSSA API Key + run: echo "FOSSA_API_KEY=${{ secrets.FOSSA_PUB_API_KEY }}" >> $GITHUB_ENV + + - name: Run FOSSA Analysis + run: fossa analyze + + - name: Run FOSSA Test + run: fossa test +