Skip to content

Only run some actions on main repo #105

Only run some actions on main repo

Only run some actions on main repo #105

Workflow file for this run

---
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

View workflow run for this annotation

GitHub Actions / License Scan

Invalid workflow file

The workflow is not valid. .github/workflows/license-scan.yaml (Line: 15, Col: 9): Unrecognized named-value: 'secrets'. Located at position 46 within expression: github.repository == 'Kuadrant/limitador' && secrets.FOSSA_API_TOKEN != null
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