Skip to content

Commit

Permalink
Move fossa checking to GHA for v0.4
Browse files Browse the repository at this point in the history
  • Loading branch information
ericpromislow committed May 30, 2024
1 parent b6b5ef9 commit 7722ae3
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 16 deletions.
16 changes: 0 additions & 16 deletions .drone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -173,19 +173,3 @@ steps:
depends_on:
- amd64
- arm64

---
kind: pipeline
name: fossa
type: docker

steps:
- name: fossa
image: rancher/drone-fossa:latest
failure: ignore
settings:
api_key:
from_secret: FOSSA_API_KEY
when:
instance:
- drone-publish.rancher.io
41 changes: 41 additions & 0 deletions .github/workflows/fossa.yaml
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


0 comments on commit 7722ae3

Please sign in to comment.