Skip to content

ci(.github): add fossa.yml and .fossa.yml config #17

ci(.github): add fossa.yml and .fossa.yml config

ci(.github): add fossa.yml and .fossa.yml config #17

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 or on PRs from forks (no access to GH secrets)
if: ${{ github.repository_owner == 'spinframework' && github.event.pull_request.head.repo.fork == false }}
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- uses: actions/checkout@v4
- name: "Install fossa CLI"
run: curl -H 'Cache-Control: no-cache' https://raw.githubusercontent.com/fossas/fossa-cli/master/install-latest.sh | bash

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

View workflow run for this annotation

GitHub Actions / .github/workflows/fossa.yml

Invalid workflow file

You have an error in your yaml syntax on line 23
- name: "Run FOSSA Scan"
env:
FOSSA_API_KEY: ${{ secrets.FOSSA_API_KEY }}
run: fossa analyze -c .fossa.yml
# - name: "Run FOSSA Scan"
# uses: fossas/fossa-action@v1.7.0 # Use a specific version if locking is preferred
# env:
# FOSSA_API_KEY: ${{ secrets.FOSSA_API_KEY }}
# with:
# api-key: ${{ env.FOSSA_API_KEY }}