-
Notifications
You must be signed in to change notification settings - Fork 63
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b6b5ef9
commit 7722ae3
Showing
2 changed files
with
41 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
# Adapted from https://github.com/rancher/security-team/blob/main/docs/guides/fossa-gha-workflow.md | ||
|
||
name: FOSSA Scanning | ||
|
||
on: | ||
# List the branches that must be scanned when a push event happens. | ||
push: | ||
branches: ["master", "release/v*"] | ||
pull_request: | ||
# For manual scans. | ||
workflow_dispatch: | ||
|
||
permissions: | ||
# Basic read access needed. | ||
contents: read | ||
# Required to authenticate in EIO's Vault. | ||
id-token: write | ||
|
||
jobs: | ||
fossa-scanning: | ||
# We're running inside a public repo, so use the public provided GH runners. | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
|
||
- name: Read FOSSA token | ||
uses: rancher-eio/read-vault-secrets@main | ||
with: | ||
secrets: | | ||
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_API_KEY_PUSH_ONLY }} | ||
# Only runs the scan and do not provide/returns any results back to the | ||
# pipeline. | ||
run-tests: false | ||
|
||
|