Skip to content

Commit

Permalink
Create Fossa Github Action
Browse files Browse the repository at this point in the history
  • Loading branch information
sarah-oloumi committed Nov 29, 2024
1 parent 1045f9f commit a1a1004
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 0 deletions.
1 change: 1 addition & 0 deletions .fossa.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
version: 3
26 changes: 26 additions & 0 deletions .github/workflows/fossa-scan.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: FOSSA Scan
on:
pull_request:

permissions:
repository-projects: read
contents: write
id-token: write
packages: write
actions: write

jobs:
fossa_scan:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.sha }}

- name: Install FOSSA CLI
run: |
curl -H 'Cache-Control: no-cache' https://raw.githubusercontent.com/fossas/fossa-cli/master/install-latest.sh | bash ;
export FOSSA_API_KEY=${{ secrets.FOSSA_API_KEY }};
fossa analyze --without-default-filters --debug --revision 1.0 --branch fossa-test --unpack-archives

0 comments on commit a1a1004

Please sign in to comment.