Skip to content

Commit

Permalink
chore: Execute FOSSA on PRs (kedacore#4367)
Browse files Browse the repository at this point in the history
  • Loading branch information
JorTurFer authored Mar 14, 2023
1 parent 7efb66e commit 00b773c
Showing 1 changed file with 16 additions and 2 deletions.
18 changes: 16 additions & 2 deletions .github/workflows/fossa.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,13 @@
name: FOSSA

on:
push:
branches: [main]
pull_request:
branches: [main]

env:
fossa-key: 9e722f2c8904586d61f97f0bf05a99e4 # This is a public key only for pushing, it's safe here

jobs:
build:
Expand All @@ -12,8 +18,16 @@ jobs:
with:
go-version: 1.19
- run: go version
- name: Get branch name
id: branch-name
uses: tj-actions/branch-names@v6
- uses: fossas/fossa-action@main
name: Scanning with FOSSA
with:
api-key: 9e722f2c8904586d61f97f0bf05a99e4 # This is a public key only for pushing, it's safe here
branch: main
api-key: ${{ env.fossa-key }}
branch: ${{ steps.branch-name.outputs.current_branch }}
- uses: fossas/fossa-action@main
name: Executing tests with FOSSA
with:
api-key: ${{ env.fossa-key }}
run-tests: true

0 comments on commit 00b773c

Please sign in to comment.