Skip to content
Closed
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
17 changes: 17 additions & 0 deletions .github/.sbomber-manifest.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
clients:
sbom:
service_url: https://sbom-request.canonical.com
department: charm_engineering
email: tony.meyer@canonical.com
team: charm_tech
secscan: {}


artifacts:
- name: 'concierge'
type: 'snap'
ssdlc_params:
name: 'concierge'
version: ''
channel: 'stable'
cycle: '25.10'
3 changes: 3 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -137,3 +137,6 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SNAPCRAFT_STORE_CREDENTIALS: ${{ secrets.STORE_TOKEN }}

secscan:
uses: ./.github/workflows/secscan.yaml
58 changes: 58 additions & 0 deletions .github/workflows/secscan.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
name: SBOM and secscan

on:
workflow_call:
workflow_dispatch:

permissions: {}

jobs:
scan:
strategy:
fail-fast: false

name: SBOM generation
runs-on: [self-hosted, self-hosted-linux-amd64-jammy-private-endpoint-medium]
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
persist-credentials: false
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install -y libapt-pkg-dev
sudo apt install -y python3-apt
- name: Checkout security scanner
uses: actions/checkout@v4
with:
repository: canonical/sbomber
path: scanner
token: ${{ secrets.SBOMBER_TOKEN }}
persist-credentials: false
- name: Install uv
uses: astral-sh/setup-uv@f0ec1fc3b38f5e7cd731bb6ce540c5af426746bb # v6.1.0
- name: Install secscan cli
run: |
sudo snap install canonical-secscan-client
sudo snap connect canonical-secscan-client:home system:home
- name: Prepare the artifacts
run: |
cd scanner
./sbomber prepare ../.github/.sbomber-manifest.yaml
- name: Submit the artifacts
run: |
cd scanner
./sbomber submit
- name: Wait for the scans to finish
run: |
cd scanner
./sbomber poll --wait --timeout 30
- name: Download the reports
run: |
cd scanner && ./sbomber download
- name: Upload reports
uses: actions/upload-artifact@v4
with:
name: secscan-report-upload
path: ./scanner/reports/
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,7 @@
dist/
.spread-reuse*.yaml
/.idea
# sbomber tool
.statefile.yaml
pkgs/
reports/