feat(ci): add Dependabot and Trivy image scanning (closes #368, closes #372) - #468
Merged
Xhristin3 merged 3 commits intoJul 29, 2026
Merged
Conversation
…z#368, closes XStreamRollz#372) - .github/dependabot.yml: weekly version-update PRs for all 5 package.json locations (root, api, app, xstreamroll-sdk, xstreamroll-processing), grouped per package family (@nestjs/*, @opentelemetry/*, react/next, @radix-ui/*). - .github/workflows/docker-scan.yml: Trivy scan of every XStreamRoll image (api, app, processing) with SARIF uploads to GitHub Code Scanning; fails on CRITICAL; weekly re-scan of published ghcr.io images; paths-filtered so unrelated PRs are skipped. - .github/workflows/dependabot-auto-merge.yml: enables squash auto-merge for Dependabot PRs that are version-update:semver-patch or security-update. - .trivyignore: starter file documenting the suppression format. - CHANGELOG.md: [Unreleased] entries referencing XStreamRollz#368 and XStreamRollz#372.
…ocket return type The useStreamSocket hook now returns streamStatus as part of its public shape (see XStreamRollz#362). Three of the four mocks in StreamViewer.test.tsx were updated with the new field; this test was missed, causing tsc --noEmit to fail in CI.
5 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #372
Closes #368
Summary
Adds automated dependency updates (Dependabot) and Docker image vulnerability scanning (Trivy) to close #368 and #372 in a single change-set.
.github/dependabot.yml— weekly schedule with grouped updates (@nestjs/*,@opentelemetry/*,react/next,@radix-ui/*) for all 5package.jsonlocations (root,api,app,xstreamroll-sdk,xstreamroll-processing)..github/workflows/docker-scan.yml— Trivy scan of every image with SARIF uploads to GitHub Code Scanning, fails onCRITICAL, weekly re-scan of publishedghcr.ioimages; paths-filtered so unrelated PRs are skipped..github/workflows/dependabot-auto-merge.yml— enables squash auto-merge for Dependabot patch and security PRs once CI is green..trivyignore— starter file documenting the suppression format.CHANGELOG.md—[Unreleased]entries referencing both issues.Note on the "immediate updates for security advisories" AC: that requirement is satisfied by the repo-level Settings → Code security and analysis → Dependabot security updates toggle (separate from this YAML), and the resulting
security-updatePRs are picked up by the auto-merge workflow above. A comment block at the top ofdependabot.ymlmakes that explicit.Related issues
Closes: #368
Closes: #372
Type of change
Testing performed
python3 -c "import yaml; yaml.safe_load(open(f).read())"against all new YAML files → OK.aquasecurity/trivy-action@0.28.0,dependabot/fetch-metadata@v2,github/codeql-action/upload-sarif@v3,docker/{setup-buildx,login,build-push}-action@v3/v6,actions/github-script@v7are valid published versions.docker-scan.ymlmatrix entries matched against the three Dockerfiles (api/Dockerfile,app/Dockerfile,xstreamroll-processing/Dockerfile).dependabot-auto-merge.ymlchecksgithub.event.pull_request.user.login == "dependabot[bot]"and gates onversion-update:semver-patch/security-updateonly.npm run lint/npm testfor these files — no source code was changed, only GitHub-Actions configuration and changelog.Screenshots (if applicable)
N/A (infrastructure-only change).
Checklist — author
origin/mainand resolved conflicts.npm run lint,npm run build,npm test. (N/A for this change-set; only YAML/changelog touched)Checklist — reviewer guidance
Reviewer should additionally verify:
dependabot-auto-merge.ymlworkflow to take effect. Documented in the workflow header.dependabot.yml.docker-scan.ymlrun on push to main will populate the Trivy Code Scanning dashboard.cron: "0 6 * * 1") needs the workflow file present onmainto take effect; after merge it will fire on the next Monday 06:00 UTC.