Skip to content

Commit

Permalink
refactor GHA, test
Browse files Browse the repository at this point in the history
Signed-off-by: Matteo Mortari <[email protected]>
  • Loading branch information
tarilabs committed Aug 30, 2024
1 parent 42f5c0f commit fd844c9
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions .github/workflows/fossa-license-scanning.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,18 @@ on:
pull_request:

jobs:
build:
fossa-scan:
if: github.repository_owner == 'kubeflow' # FOSSA is not intended to run on forks.
runs-on: ubuntu-latest

env:
# push-only token, intentional; see https://github.com/fossa-contrib/fossa-action?tab=readme-ov-file#push-only-api-token
# this also how other CNCF projects are doing e.g. https://github.com/cncf/foundation/issues/109
FOSSA_API_KEY: 80871bdd477c2c97f65e9822cae99d20 # This is a push-only token that is safe to be exposed.
steps:
- name: Checkout tree
uses: actions/checkout@v4

- name: Run FOSSA scan and upload build data
uses: fossa-contrib/fossa-action@v3
with:
# push-only token, intentional; see https://github.com/fossa-contrib/fossa-action?tab=readme-ov-file#push-only-api-token
# this also how other CNCF projects are doing e.g. https://github.com/cncf/foundation/issues/109
fossa-api-key: 80871bdd477c2c97f65e9822cae99d20
fossa-api-key: ${{ env.FOSSA_API_KEY }}

0 comments on commit fd844c9

Please sign in to comment.