Skip to content

Commit

Permalink
Add FOSSA Workflow
Browse files Browse the repository at this point in the history
Signed-off-by: galal-hussein <hussein.galal.ahmed.11@gmail.com>
  • Loading branch information
galal-hussein committed Jul 2, 2024
1 parent a7c7100 commit 72e29b4
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/fossa.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: FOSSA Scanning

on:
push:
branches: ["main", "master", "release-**"]
workflow_dispatch:

permissions:
contents: read
id-token: write

jobs:
fossa-scanning:
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 }}
run-tests: false

0 comments on commit 72e29b4

Please sign in to comment.