Skip to content

add CodeQL security scanning and Dependabot - #38

Open
PrinceOliver wants to merge 15 commits into
mainfrom
ci-confirguration
Open

add CodeQL security scanning and Dependabot#38
PrinceOliver wants to merge 15 commits into
mainfrom
ci-confirguration

Conversation

@PrinceOliver

@PrinceOliver PrinceOliver commented Aug 20, 2026

Copy link
Copy Markdown
Collaborator

Summary

Adds modern security scanning and automated dependency management to the repository.

Changes

  • CodeQL (.github/workflows/codeql.yml)

    • Scans C#, JavaScript/TypeScript, and GitHub Actions workflows
    • Runs on every push/PR to main + weekly schedule
    • Uses the official advanced setup with appropriate build modes
  • Dependabot (.github/dependabot.yml)

    • Weekly updates for:
      • NuGet packages
      • npm packages (gulp, Playwright, etc.)
      • GitHub Actions
    • Limited open PRs and clear labels/commit prefixes

Why

  • Improves security posture of the open-source Blazor Toolkit
  • Catches vulnerabilities early in PRs
  • Keeps dependencies up-to-date automatically
  • Aligns with GitHub’s recommended security practices

Checklist

  • CodeQL workflow added
  • Dependabot configuration added
  • First CodeQL run completed successfully (after merge)

- Add polished CodeQL workflow (csharp + javascript-typescript + actions)
- Add Dependabot configuration for NuGet, npm, and GitHub Actions
- Enable weekly scheduled scans and dependency updates
@PrinceOliver PrinceOliver self-assigned this Aug 20, 2026
@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.

Comment thread .github/workflows/ci.yml Fixed
PrinceOliver and others added 4 commits August 20, 2026 14:15
…ntain permissions'

Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
- Add SLSA build provenance attestation (actions/attest-build-provenance@v2)
  for nupkg/*.nupkg and nupkg/*.snupkg, scoped to pushed tag ref.
- Add workflow-level concurrency guard (cancel-in-progress: false) so re-tags
  don't race the sign-and-push steps.
- Switch vulnerability scan to exit-code-driven --format json capture, upload
  vuln-report artifact for diagnosis on failure.
- Install Node 22 + npm + run gulp themes task on the release runner so the
  csproj BeforeBuild target completes on a clean image.
- Pass -p:ContinuousIntegrationBuild=true to restore/build/pack for re-tag
  reproducibility.
- Replace hard-coded copyright year with UtcNow-derived property.
- Update .github/{THREAT-MODEL,SECURITY,DEVELOPMENT}.md to reflect new posture.
Comment thread .github/workflows/ci.yml Fixed
Comment thread .github/workflows/ci.yml Fixed
Comment thread .github/workflows/ci.yml Fixed
@github-actions

Copy link
Copy Markdown

CI Summary

Job Status
bUnit (.NET 8 / 9 / 10) ❌ Failed
Playwright ❌ Failed

Overall: ❌ Some checks failed

PrinceOliver and others added 8 commits August 21, 2026 17:21
…ntain permissions'

Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
…ntain permissions'

Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
…at sets the timezone/locale so the runner uses UTC and en_US.UTF-8.
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.

2 participants