Skip to content

github: add reposcan security scan workflow - #489

Merged
Meulengracht merged 2 commits into
canonical:mainfrom
PedroMondadori:ci-reposcan
Nov 23, 2026
Merged

Meulengracht merged 2 commits into
canonical:mainfrom
PedroMondadori:ci-reposcan

Conversation

@PedroMondadori

@PedroMondadori PedroMondadori commented Nov 16, 2026 •

Copy link
Copy Markdown
Contributor

Adds a security-scan workflow running canonical/reposcan (secrets, sast,
iac, workflow, sca) on PRs and pushes to main and the core branches, weekly, and on demand, as part of the SSDLC Vulnerability Discovery and Identification requirements.

This complements, not replaces, the existing cve-scan job: that one
scans the built snap's packages, reposcan scans the repository itself
(build scripts, hooks, workflows, secrets). Report-only (fail-on: none).
Results go to Code Scanning, a PR comment and a reposcan-results artifact.

Tested on fork: PedroMondadori#1

SNAPDENG-37884

@github-advanced-security

Copy link
Copy Markdown

You are seeing this message because GitHub Code Scanning has recently been set up for this repository, or this pull request contains the workflow file for the Code Scanning tool.

What Enabling Code Scanning Means:

  • The 'Security' tab will display more code scanning analysis results (e.g., for the default branch).
  • Depending on your configuration and choice of analysis tool, future pull requests will be annotated with code scanning analysis results.
  • You will be able to see the analysis results for the pull request's branch on this overview once the scans have completed and the checks have passed.

For more information about GitHub Code Scanning, check out the documentation.

with:
fetch-depth: 0
persist-credentials: false
- uses: canonical/reposcan@55f9f01048e884f47dc34b658d2bf7de76fb03e7 # main
Comment on lines +12 to +13
schedule:
- cron: "0 3 * * 1"

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why do we want it on both push, pull_request and schedule? It seems almost unneccessary

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's what's required by SSDLC policy. Every pull request and merge to primary branches, and a scheduled full scan minimum once a week.

@Meulengracht
Meulengracht merged commit b580313 into canonical:main Nov 23, 2026
6 of 8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants