Only run some actions on main repo #105
Workflow file for this run
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: License Scan | ||
on: | ||
push: | ||
branches: | ||
- 'main' | ||
pull_request: | ||
branches: | ||
- '*' | ||
jobs: | ||
fossa-scan: | ||
name: Find license compliance and security issues | ||
if: github.repository == 'Kuadrant/limitador' && secrets.FOSSA_API_TOKEN != null | ||
Check failure on line 15 in .github/workflows/license-scan.yaml GitHub Actions / License ScanInvalid workflow file
|
||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: fossas/[email protected] | ||
name: License Scan | ||
with: | ||
api-key: ${{secrets.FOSSA_API_TOKEN}} | ||
branch: ${{ github.head_ref || github.ref_name }} | ||
project: git+github.com/Kuadrant/limitador | ||
- uses: fossas/[email protected] | ||
name: License test for issues | ||
with: | ||
api-key: ${{secrets.FOSSA_API_TOKEN}} | ||
run-tests: true | ||
project: git+github.com/Kuadrant/limitador |