# yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json name: FOSSA permissions: {} on: push: branches: - main concurrency: group: ${{ github.workflow }}-${{ github.ref }} cancel-in-progress: true jobs: fossa-scan: runs-on: ubuntu-latest steps: - name: Checkout uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0 - name: Check secret id: checksecret uses: ./.github/actions/is-defined with: value: ${{ secrets.FOSSA_API_KEY }} - name: Setup caches uses: ./.github/actions/setup-caches timeout-minutes: 5 continue-on-error: true - name: Setup build env if: steps.checksecret.outputs.result == 'true' uses: ./.github/actions/setup-build-env timeout-minutes: 10 with: free-disk-space: false - name: Run FOSSA analysis if: steps.checksecret.outputs.result == 'true' uses: fossas/fossa-action@09bcf127dc0ccb4b5a023f6f906728878e8610ba # v1.4.0 with: api-key: ${{ secrets.FOSSA_API_KEY }}