Repository navigation
feat(ci): supply-chain security in CI — CodeQL, secret scanning, dependency review, pinned actions - #185
Conversation
|
@ololadeanalytics-prog Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits. You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀 |
🚨 Malware scan: needs security review@ololadeanalytics-prog The automated scan of
8 lower-severity note(s) for the reviewer
If this is a false positive, reply here explaining why and a maintainer will clear it. If it isn't intentional, remove it and push again: the scan re-runs on every push and updates this comment. |
|
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:
For more information about GitHub Code Scanning, check out the documentation. |
|
@Ecruise-hub Thanks for taking on supply-chain hardening. I reviewed this by hand after the malware scan flagged it. I found nothing malicious, but the PR can't be merged as it is because several files are broken:
Please rebuild the branch from the latest |
|
@ololadeanalytics-prog This PR now has merge conflicts with git fetch upstream # upstream = https://github.com/DocForum/docforum-core.git
git rebase upstream/main
# resolve the conflicts, re-run the tests, then:
git push --force-with-leaseThe usual culprits are shared files like Automated message. It won't repeat unless the PR conflicts again after your next push. |
|
@ololadeanalytics-prog This PR now has merge conflicts with git fetch upstream # upstream = https://github.com/DocForum/docforum-core.git
git rebase upstream/main
# resolve the conflicts, re-run the tests, then:
git push --force-with-leaseThe usual culprits are shared files like Automated message. It won't repeat unless the PR conflicts again after your next push. |
|
@ololadeanalytics-prog This PR now has merge conflicts with git fetch upstream # upstream = https://github.com/DocForum/docforum-core.git
git rebase upstream/main
# resolve the conflicts, re-run the tests, then:
git push --force-with-leaseThe usual culprits are shared docs like Automated message. It won't repeat unless the PR conflicts again after your next push. |
|
@afeezorobsco-cyber — this PR is ready for another review. I resolved the merge conflicts with the main branch (pushed 7ddb6a7). |
|
@ololadeanalytics-prog The required
The SHAs in Please:
|
|
@ololadeanalytics-prog This PR now has merge conflicts with git fetch upstream # upstream = https://github.com/DocForum/docforum-core.git
git rebase upstream/main
# resolve the conflicts, re-run the tests, then:
git push --force-with-leaseThe usual culprits are shared docs like Automated message. It won't repeat unless the PR conflicts again after your next push. |
|
@ololadeanalytics-prog This PR now has merge conflicts with git fetch upstream # upstream = https://github.com/DocForum/docforum-core.git
git rebase upstream/main
# resolve the conflicts, re-run the tests, then:
git push --force-with-leaseThe usual culprits are shared docs like Automated message. It won't repeat unless the PR conflicts again after your next push. |
Overview
This PR hardens the CI supply chain by adding four standard GitHub security controls: CodeQL analysis for TypeScript, secret scanning via gitleaks with a baseline config, dependency review on PRs, and SHA-pinned third-party actions. It also tightens workflow
permissions:to least-privilege so fork PRs and Pages deploys stay safe, and adds an install-time integrity check for the escrow SDK tarball.Related Issue
Closes #
Changes
🔐 CodeQL analysis
.github/workflows/codeql.ymlpushtomain, onpull_request, and on a weekly schedule.permissions:(contents: read,security-events: write,actions: read).github/codeql-action/*to a commit SHA.🕵️ Secret scanning
.github/workflows/secret-scan.ymlpushandpull_requestwithpermissions: contents: read..gitleaks.toml📦 Dependency review
.github/workflows/dependency-review.ymlactions/dependency-review-actiononpull_requestwithpermissions: contents: readandpull-requests: write.🧷 Pinned actions & least-privilege permissions
.github/workflows/ci.ymlpermissions: contents: read..github/workflows/deploy-docs.ymlpermissions:scoped to what the Pages deploy actually needs (contents: read,pages: write,id-token: write).🧾 Escrow SDK tarball integrity
backend/package.jsonpostinstallintegrity check that verifies the escrow SDK tarball against its published checksum before the package is used.📚 Docs
ROADMAP.mdVerification Results
ROADMAP.mdupdatedARCHITECTURE.md§4 /docs/api/README.mdupdated if models or endpoints changedCloses #111