This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: FOSSA scan | |
on: | |
push: | |
branches: [ "master" ] | |
pull_request: | |
# The branches below must be a subset of the branches above | |
branches: [ "master" ] | |
permissions: | |
contents: read | |
jobs: | |
fossa-scan: | |
runs-on: ubuntu-latest | |
steps: | |
- name: "Checkout Code" | |
uses: actions/checkout@v3 | |
- name: "Run FOSSA Scan" | |
uses: fossas/fossa-action@main # Use a specific version if locking is preferred | |
with: | |
api-key: ${{secrets.fossaApiKey}} | |
#- name: "Run FOSSA Test" | |
# uses: fossas/fossa-action@main # Use a specific version if locking is preferred | |
# with: | |
# api-key: ${{secrets.fossaApiKey}} | |
# run-tests: true | |
- name: "Run FOSSA CLI" | |
- run: | | |
echo "Inside group" | |
curl -H 'Cache-Control: no-cache' https://raw.githubusercontent.com/fossas/fossa-cli/master/install-latest.sh | sudo bash | |
fossa analyze |