Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[1.28] update the workflow for FOSSA #365

Merged
merged 1 commit into from
Jun 7, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 15 additions & 15 deletions .github/workflows/fossa.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,30 +2,30 @@ name: Run Fossa Scan

on:
push:
tags:
- '*'
branches:
# v1.27, v1.28, v1.29 and so on
- "v1.*"
# For manual scans.
workflow_dispatch:

jobs:
fossa:
runs-on: ubuntu-latest
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/[email protected]
with:
api-key: ${{ env.FOSSA }}
- name: Run Fossa test
uses: fossas/[email protected]
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