diff --git a/.github/workflows/fossa.yaml b/.github/workflows/fossa.yaml index 7e8d0f89f0..49323be5db 100644 --- a/.github/workflows/fossa.yaml +++ b/.github/workflows/fossa.yaml @@ -4,8 +4,8 @@ on: push: branches: - master - tags: - - '*' + # For manual scans. + workflow_dispatch: jobs: fossa: @@ -13,21 +13,18 @@ jobs: permissions: contents: read id-token: write # needed for the Vault authentication - continue-on-error: true # we know that fossa test will report errors steps: - - name: Load Secrets from Vault + - name: Checkout + uses: actions/checkout@v4 + + - name: Read FOSSA token uses: rancher-eio/read-vault-secrets@main with: secrets: | - secret/data/github/repo/${{ github.repository }}/fossa/credentials token | FOSSA - - name: Checkout Repo - uses: actions/checkout@v4 - - name: Run FOSSA Analyze - uses: fossas/fossa-action@v1.3.3 - with: - api-key: ${{ env.FOSSA }} - - name: Run FOSSA test - uses: fossas/fossa-action@v1.3.3 + secret/data/github/org/rancher/fossa/push token | FOSSA_API_KEY_PUSH_ONLY + + - name: FOSSA scan + uses: fossas/fossa-action@main with: - api-key: ${{ env.FOSSA }} - run-tests: true + api-key: ${{ env.FOSSA_API_KEY_PUSH_ONLY }} + run-tests: false