Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 12 additions & 6 deletions .github/workflows/ssdlc-scanning.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@ name: SSDLC scanning
on:
workflow_dispatch:
schedule:
- cron: "0 0 10 4,10 *"
- cron: "0 0 1,15 * *"
# │ │ │ │ │
# │ │ │ │ └─ any day of the week.
# │ │ │ └────── 4th and 10th month (April & October).
# │ │ └───────── 10th day of the month.
# │ │ │ └────── 1st and 15th of every month.
# │ │ └───────── Any day (covered by day-of-month above).
# │ └─────────── 0th hour of the day.
# └───────────── Start of the hour (minutes = 0).

Expand All @@ -20,12 +20,18 @@ jobs:
type: [sbom, secscan]
artifact: [rock, charm]

name: SSDLC scanning - ${{ matrix.type }} - ${{ matrix.artifact }} artifacts
name: ${{ matrix.type == 'sbom' && 'SBOM Scan' || 'SecScan' }} (${{ matrix.artifact }}s)
steps:
- name: Checkout
uses: actions/checkout@v6
- name: Install yq
run: sudo snap install yq
- name: Generate manifest
env:
SSDLC_MANIFEST_OUTPUT: /tmp/ssdlc-manifest.yaml
run: just security::generate-ssdlc-manifest ${{ matrix.type }} ${{ matrix.artifact }}
- name: Run sbomber action
uses: canonical/sbomber/.github/actions/run@main
with:
manifest: "${{ github.workspace }}/ssdlc-manifests/${{ matrix.artifact }}-${{ matrix.type }}-manifest.yaml"
artifact-name: ${{ matrix.artifact }}-${{ matrix.type }}
manifest: /tmp/ssdlc-manifest.yaml
artifact-name: ${{ matrix.artifact }}-${{ matrix.type }}
Loading