Ensure workflows run on master push (#47) #27
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" # Run the workflow when pushing to the master branch | |
paths: | |
- 'src/**' | |
- '.github/workflows/fossa-scan.yml' | |
pull_request: | |
branches: | |
- "*" # Run the workflow for all pull requests | |
paths: | |
- 'src/**' | |
- '.github/workflows/fossa-scan.yml' | |
jobs: | |
fossa-scan: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: fossas/fossa-action@main | |
with: | |
api-key: ${{ secrets.FOSSA_API_KEY }} | |