# Generated by /setup-meerkat — safe to delete; re-run the skill to recreate it.
#
# Arm: SBOM (syft) — an inventory, not a verdict. It never fails the build; it is
# what the other arms' answers are checked against. Optional: the skill writes this
# file only when you ask for it.
#
# Every `uses:` ref below is pinned to the commit this skill shipped with. Re-check
# them when you upgrade the skill.

name: security-sbom

on:
  push:
    tags: ["v*"]
  schedule:
    - cron: "17 3 * * 1"
  workflow_dispatch:

permissions:
  contents: read

concurrency:
  group: security-sbom-${{ github.ref }}
  cancel-in-progress: true

jobs:
  sbom:
    name: SBOM (syft)
    runs-on: ubuntu-latest
    timeout-minutes: 15
    steps:
      - uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
        with:
          fetch-depth: 1

      - name: Generate the SBOM (syft, SPDX JSON)
        uses: anchore/sbom-action@e22c389904149dbc22b58101806040fa8d37a610 # v0
        with:
          path: .
          format: spdx-json
          output-file: sbom.spdx.json
          artifact-name: sbom.spdx.json
          upload-artifact: true
          upload-release-assets: false
