Skip to content

Support fork pull requests in build workflow - #151

Merged
brantburnett merged 2 commits into
mainfrom
brantburnett-fork-pr-builds
Aug 31, 2026
Merged

brantburnett merged 2 commits into
mainfrom
brantburnett-fork-pr-builds

Conversation

@brantburnett

Copy link
Copy Markdown
Owner

Motivation

Fork pull requests cannot obtain the OIDC credentials needed to authenticate with NuGet.org, causing otherwise valid build runs to fail.

Modifications

  • Run NuGet OIDC login only for release-tag builds, where package publishing can occur.
  • Update GitHub Actions and CodeQL references to their latest stable major versions.

Results

  • Fork pull requests build, test, pack, and upload artifacts without attempting NuGet authentication.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟡 Changes recommended

There are workflow correctness/security issues to address (misleading step labeling and overly broad id-token: write permissions in the publish job).

Once you've addressed the issues Copilot identified, you can request another Copilot review.

Pull request overview

This PR adjusts CI workflows so fork pull requests can run successfully without attempting NuGet.org authentication that requires OIDC/secrets, and refreshes workflow dependencies to newer major versions.

Changes:

  • Gate NuGet OIDC login to only run on refs/tags/release/* builds (aligned with GitVersion.yml tag prefix).
  • Update multiple GitHub Actions references (checkout/setup-dotnet/cache/artifact/pages) to newer major versions.
  • Update CodeQL action usage to github/codeql-action@v4.
File summaries
File Description
.github/workflows/pages.yml Bumps Pages workflow action versions (checkout/setup-dotnet/upload-pages-artifact/deploy-pages).
.github/workflows/main.yml Bumps core CI action versions and gates NuGet OIDC login to release-tag builds to support fork PRs.
.github/workflows/codeql-analysis.yml Updates checkout/setup-dotnet and bumps CodeQL actions to v4.
Review details
  • Files reviewed: 3/3 changed files
  • Comments generated: 2
  • Review effort level: Lite

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread .github/workflows/codeql-analysis.yml Resolved
Comment thread .github/workflows/main.yml Resolved
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@brantburnett
brantburnett marked this pull request as ready for review August 31, 2026 15:23
@brantburnett
brantburnett merged commit 6a30098 into main Aug 31, 2026
42 checks passed
@brantburnett
brantburnett deleted the brantburnett-fork-pr-builds branch August 31, 2026 15:30
ogonna-ee pushed a commit to DEFRA/waste-organisations that referenced this pull request Nov 16, 2026
Updated [Snappier](https://github.com/brantburnett/Snappier) from 1.3.1
to 1.3.2.

<details>
<summary>Release notes</summary>

_Sourced from [Snappier's
releases](https://github.com/brantburnett/Snappier/releases)._

## 1.3.2

## What's Changed
* Support fork pull requests in build workflow by @​brantburnett in
brantburnett/Snappier#151
* Build with the .NET 11 SDK and C# 15 by @​brantburnett in
brantburnett/Snappier#153
* Migrate tests to xunit.v3 4.x on Microsoft Testing Platform v2 by
@​brantburnett in brantburnett/Snappier#154
* Fix literal overrun validation in Snappy decompression by
@​brantburnett in brantburnett/Snappier#156
* Enable C# 15 memory safety rules and annotate unsafe code by
@​brantburnett in brantburnett/Snappier#157
* Keep memory safety rules out of BenchmarkDotNet's generated project by
@​brantburnett in brantburnett/Snappier#160
* Use unaligned loads and stores in UnalignedCopy64/128 by
@​brantburnett in brantburnett/Snappier#159
* Move hot-path exception messages into NoInlining throw helpers by
@​brantburnett in brantburnett/Snappier#158
* Upgrade BenchmarkDotNet to 0.16.0-preview.2 and benchmark .NET 11 by
@​brantburnett in brantburnett/Snappier#161
* Compare buffer distances instead of forming out-of-range refs by
@​brantburnett in brantburnett/Snappier#162
* Reject undersized data chunks in framed stream decompression by
@​brantburnett in brantburnett/Snappier#163
* Use five launches for Default benchmark jobs by @​brantburnett in
brantburnett/Snappier#164
* Keep rare decompression paths out of the hot loop under Dynamic PGO by
@​brantburnett in brantburnett/Snappier#165


**Full Changelog**:
brantburnett/Snappier@release/1.3.1...release/1.3.2

Commits viewable in [compare
view](brantburnett/Snappier@release/1.3.1...release/1.3.2).
</details>

[![Dependabot compatibility
score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=Snappier&package-manager=nuget&previous-version=1.3.1&new-version=1.3.2)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)

Dependabot will resolve any conflicts with this PR as long as you don't
alter it yourself. You can also trigger a rebase manually by commenting
`@dependabot rebase`.

[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)

---

<details>
<summary>Dependabot commands and options</summary>
<br />

You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits
that have been made to it
- `@dependabot show <dependency name> ignore conditions` will show all
of the ignore conditions of the specified dependency
- `@dependabot ignore <dependency name> major version` will close this
group update PR and stop Dependabot creating any more for the specific
dependency's major version (unless you unignore this specific
dependency's major version or upgrade to it yourself)
- `@dependabot ignore <dependency name> minor version` will close this
group update PR and stop Dependabot creating any more for the specific
dependency's minor version (unless you unignore this specific
dependency's minor version or upgrade to it yourself)
- `@dependabot ignore <dependency name>` will close this group update PR
and stop Dependabot creating any more for the specific dependency
(unless you unignore this specific dependency or upgrade to it yourself)
- `@dependabot unignore <dependency name>` will remove all of the ignore
conditions of the specified dependency
- `@dependabot unignore <dependency name> <ignore condition>` will
remove the ignore condition of the specified dependency and ignore
conditions


</details>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
ooples pushed a commit to ooples/AiDotNet that referenced this pull request Nov 16, 2026
Updated
[coverlet.collector](https://github.com/coverlet-coverage/coverlet) from
10.1.0 to 10.1.1.

<details>
<summary>Release notes</summary>

_Sourced from [coverlet.collector's
releases](https://github.com/coverlet-coverage/coverlet/releases)._

## 10.1.1

### Improvements

- Add `IsReachable` to branch points, computed from the method's
control-flow graph, and exclude unreachable branches from
branch-coverage totals and from branch details in Cobertura, LCOV and
OpenCover reports
[#​2056](coverlet-coverage/coverlet#2056) by
@​pcshrosbree
- coverlet.MTP: Narrow Dynamic Exclude Filters for Loaded Assemblies
[#​2069](coverlet-coverage/coverlet#2069)

### Fixed

- Fix Regression Prevent invalid IL from branch trampolines
[#​2067](coverlet-coverage/coverlet#2067)
- Fix Regression coverlet.MTP does not instrument local functions
[#​2046](coverlet-coverage/coverlet#2046)

## Maintenance

- Update NuGet package versions
[#​2050](coverlet-coverage/coverlet#2050)

[Diff between 10.1.0 and
10.1.1](coverlet-coverage/coverlet@v10.1.0...v10.1.1)

Commits viewable in [compare
view](coverlet-coverage/coverlet@v10.1.0...v10.1.1).
</details>

Updated
[Microsoft.CodeAnalysis.Analyzers](https://github.com/dotnet/roslyn)
from 5.9.0 to 5.12.0.

<details>
<summary>Release notes</summary>

_Sourced from [Microsoft.CodeAnalysis.Analyzers's
releases](https://github.com/dotnet/roslyn/releases)._

No release notes found for this version range.

Commits viewable in [compare
view](https://github.com/dotnet/roslyn/commits).
</details>

Updated Microsoft.CodeAnalysis.CSharp from 4.14.0 to 5.12.0.

Updated [Snappier](https://github.com/brantburnett/Snappier) from 1.3.1
to 1.3.2.

<details>
<summary>Release notes</summary>

_Sourced from [Snappier's
releases](https://github.com/brantburnett/Snappier/releases)._

## 1.3.2

## What's Changed
* Support fork pull requests in build workflow by @​brantburnett in
brantburnett/Snappier#151
* Build with the .NET 11 SDK and C# 15 by @​brantburnett in
brantburnett/Snappier#153
* Migrate tests to xunit.v3 4.x on Microsoft Testing Platform v2 by
@​brantburnett in brantburnett/Snappier#154
* Fix literal overrun validation in Snappy decompression by
@​brantburnett in brantburnett/Snappier#156
* Enable C# 15 memory safety rules and annotate unsafe code by
@​brantburnett in brantburnett/Snappier#157
* Keep memory safety rules out of BenchmarkDotNet's generated project by
@​brantburnett in brantburnett/Snappier#160
* Use unaligned loads and stores in UnalignedCopy64/128 by
@​brantburnett in brantburnett/Snappier#159
* Move hot-path exception messages into NoInlining throw helpers by
@​brantburnett in brantburnett/Snappier#158
* Upgrade BenchmarkDotNet to 0.16.0-preview.2 and benchmark .NET 11 by
@​brantburnett in brantburnett/Snappier#161
* Compare buffer distances instead of forming out-of-range refs by
@​brantburnett in brantburnett/Snappier#162
* Reject undersized data chunks in framed stream decompression by
@​brantburnett in brantburnett/Snappier#163
* Use five launches for Default benchmark jobs by @​brantburnett in
brantburnett/Snappier#164
* Keep rare decompression paths out of the hot loop under Dynamic PGO by
@​brantburnett in brantburnett/Snappier#165


**Full Changelog**:
brantburnett/Snappier@release/1.3.1...release/1.3.2

Commits viewable in [compare
view](brantburnett/Snappier@release/1.3.1...release/1.3.2).
</details>

Dependabot will resolve any conflicts with this PR as long as you don't
alter it yourself. You can also trigger a rebase manually by commenting
`@dependabot rebase`.

[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)

---

<details>
<summary>Dependabot commands and options</summary>
<br />

You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits
that have been made to it
- `@dependabot show <dependency name> ignore conditions` will show all
of the ignore conditions of the specified dependency
- `@dependabot ignore <dependency name> major version` will close this
group update PR and stop Dependabot creating any more for the specific
dependency's major version (unless you unignore this specific
dependency's major version or upgrade to it yourself)
- `@dependabot ignore <dependency name> minor version` will close this
group update PR and stop Dependabot creating any more for the specific
dependency's minor version (unless you unignore this specific
dependency's minor version or upgrade to it yourself)
- `@dependabot ignore <dependency name>` will close this group update PR
and stop Dependabot creating any more for the specific dependency
(unless you unignore this specific dependency or upgrade to it yourself)
- `@dependabot unignore <dependency name>` will remove all of the ignore
conditions of the specified dependency
- `@dependabot unignore <dependency name> <ignore condition>` will
remove the ignore condition of the specified dependency and ignore
conditions


</details>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
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