-
Notifications
You must be signed in to change notification settings - Fork 1
chore(ci): add CodeQL, Dependabot, and release-please #43
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 2 commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| { | ||
| ".": "1.2.5" | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| # Default owner for everything | ||
| * @erlendellefsen | ||
|
|
||
| # Security-sensitive files require extra review | ||
| .github/workflows/** @erlendellefsen |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,44 @@ | ||
| version: 2 | ||
|
|
||
| updates: | ||
| # NuGet packages | ||
| - package-ecosystem: nuget | ||
| directory: / | ||
| schedule: | ||
| interval: weekly | ||
| day: monday | ||
| open-pull-requests-limit: 10 | ||
| labels: | ||
| - dependencies | ||
| - nuget | ||
| commit-message: | ||
| prefix: "deps(nuget)" | ||
| groups: | ||
| # Group minor/patch updates to reduce PR noise | ||
| microsoft: | ||
| patterns: | ||
| - "Microsoft.*" | ||
| update-types: | ||
| - minor | ||
| - patch | ||
| testing: | ||
| patterns: | ||
| - "xunit*" | ||
| - "Moq*" | ||
| - "coverlet*" | ||
| update-types: | ||
| - minor | ||
| - patch | ||
|
|
||
| # GitHub Actions | ||
| - package-ecosystem: github-actions | ||
| directory: / | ||
| schedule: | ||
| interval: weekly | ||
| day: monday | ||
| open-pull-requests-limit: 5 | ||
| labels: | ||
| - dependencies | ||
| - github-actions | ||
| commit-message: | ||
| prefix: "deps(actions)" |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,26 @@ | ||
| { | ||
| "$schema": "https://raw.githubusercontent.com/googleapis/release-please/refs/heads/main/schemas/config.json", | ||
| "packages": { | ||
| ".": { | ||
| "release-type": "simple", | ||
| "package-name": "JsonApiToolkit", | ||
| "changelog-sections": [ | ||
| { "type": "feat", "section": "Features", "hidden": false }, | ||
| { "type": "fix", "section": "Bug Fixes", "hidden": false }, | ||
| { "type": "perf", "section": "Performance", "hidden": false }, | ||
| { "type": "refactor", "section": "Refactoring", "hidden": false }, | ||
| { "type": "docs", "section": "Documentation", "hidden": false }, | ||
| { "type": "test", "section": "Tests", "hidden": true }, | ||
| { "type": "chore", "section": "Maintenance", "hidden": true }, | ||
| { "type": "deps", "section": "Dependencies", "hidden": false } | ||
| ], | ||
| "extra-files": [ | ||
| { | ||
| "type": "xml", | ||
| "path": "JsonApiToolkit/JsonApiToolkit.csproj", | ||
| "xpath": "//Project/PropertyGroup/Version" | ||
| } | ||
| ] | ||
| } | ||
| } | ||
| } | ||
This file was deleted.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,52 @@ | ||
| name: CodeQL | ||
|
|
||
| on: | ||
| push: | ||
| branches: [main] | ||
| paths: | ||
| - "**.cs" | ||
| - "**.csproj" | ||
| pull_request: | ||
| branches: [main] | ||
| paths: | ||
| - "**.cs" | ||
| - "**.csproj" | ||
| schedule: | ||
| - cron: "0 6 * * 1" # Monday 6am UTC | ||
|
|
||
| concurrency: | ||
| group: ${{ github.workflow }}-${{ github.ref }} | ||
| cancel-in-progress: true | ||
|
|
||
| jobs: | ||
| analyze: | ||
| name: Analyze | ||
| runs-on: ubuntu-latest | ||
| permissions: | ||
| security-events: write | ||
| packages: read | ||
| actions: read | ||
| contents: read | ||
|
|
||
| steps: | ||
| - name: Checkout | ||
| uses: actions/checkout@v4 | ||
|
|
||
| - name: Setup .NET | ||
| uses: actions/setup-dotnet@v4 | ||
| with: | ||
| dotnet-version: 9.x | ||
|
|
||
| - name: Initialize CodeQL | ||
| uses: github/codeql-action/init@v3 | ||
| with: | ||
| languages: csharp | ||
| queries: security-and-quality | ||
|
|
||
| - name: Build | ||
| run: dotnet build --configuration Release | ||
|
|
||
| - name: Perform CodeQL Analysis | ||
| uses: github/codeql-action/analyze@v3 | ||
| with: | ||
| category: "/language:csharp" |
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
| @@ -0,0 +1,31 @@ | ||||||
| name: Release Please | ||||||
|
|
||||||
| permissions: | ||||||
| contents: write | ||||||
| pull-requests: write | ||||||
|
|
||||||
| on: | ||||||
| push: | ||||||
| branches: | ||||||
| - main | ||||||
|
|
||||||
| jobs: | ||||||
| release-please: | ||||||
| if: github.event_name == 'push' | ||||||
| name: 🚀 Release Please | ||||||
| runs-on: ubuntu-latest | ||||||
| permissions: | ||||||
| contents: write | ||||||
| pull-requests: write | ||||||
| steps: | ||||||
| - uses: actions/create-github-app-token@29824e69f54612133e76f7eaac726eef6c875baf | ||||||
| id: app-token | ||||||
| with: | ||||||
| app-id: ${{ vars.RELEASE_BOT_APP_ID }} | ||||||
| private-key: ${{ secrets.RELEASE_BOT_PRIVATE_KEY }} | ||||||
|
|
||||||
| - uses: googleapis/release-please-action@16a9c90856f42705d54a6fda1823352bdc62cf38 | ||||||
| with: | ||||||
| token: ${{ steps.app-token.outputs.token }} | ||||||
| config-file: .github/release-please-config.json | ||||||
| manifest-file: .github/release-please-manifest.json | ||||||
|
||||||
| manifest-file: .github/release-please-manifest.json | |
| manifest-file: .github/.release-please-manifest.json |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
package-nameis set toJsonApiToolkit, but the published NuGetPackageIdisIntility.JsonApiToolkit(JsonApiToolkit/JsonApiToolkit.csproj). Using a different name here can lead to confusing release PRs/tags/changelog entries. Consider aligningpackage-namewith the actual package id.