Skip to content

ci(.github): add fossa.yml #24

ci(.github): add fossa.yml

ci(.github): add fossa.yml #24

Workflow file for this run

name: fossa
on:
push:
branches:
- main
- v*
pull_request:
branches:
- main
workflow_dispatch:
jobs:
fossa-scan:
# Don't attempt to run FOSSA on forks
if: github.repository_owner == 'spinframework'
runs-on: ubuntu-latest
env:
FOSSA_API_KEY: d21f74dd762b95fa3e318b70e8428ca5 # This is a push-only token that is safe to be exposed
permissions:
contents: read
steps:
- uses: actions/checkout@v4
- name: "Run FOSSA Scan"
uses: fossas/[email protected]
with:
api-key: ${{ env.FOSSA_API_KEY }}
- name: "Run FOSSA Test"
if: github.event == pull_request

Check failure on line 30 in .github/workflows/fossa.yml

View workflow run for this annotation

GitHub Actions / fossa

Invalid workflow file

The workflow is not valid. .github/workflows/fossa.yml (Line: 30, Col: 13): Unrecognized named-value: 'pull_request'. Located at position 17 within expression: github.event == pull_request
uses: fossas/[email protected]
with:
api-key: ${{ env.FOSSA_API_KEY }}
run-tests: true
test-diff-revision: ${{ github.event.pull_request.base.sha }}