Merged
Conversation
- Pin remaining actions - Specify top-level/default `permissions: contents: read` in build.yml - Set `persist-credentials: false` on checkout - Add an environment for nuget publish job and use `release` event trigger - Add dependabot cooldown
Contributor
There was a problem hiding this comment.
Pull request overview
Hardens the repository’s GitHub Actions and Dependabot configuration to reduce supply-chain risk (action pinning, least-privilege tokens, and safer publish flows).
Changes:
- Pin GitHub Actions to commit SHAs, update runners, and disable
persist-credentialson checkout. - Add default
permissions: contents: readinbuild.yml, and adjust triggers to includereleasepublishing with an environment gate. - Add Dependabot cooldown windows to reduce update churn.
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
| .github/workflows/docs.yml | Pins actions, switches runner to Ubuntu 24.04, and disables persisted checkout credentials for docs deploy. |
| .github/workflows/build.yml | Pins actions, applies top-level minimal permissions, disables persisted checkout credentials, and changes publish triggering to release-based with an environment. |
| .github/dependabot.yml | Adds cooldown configuration to Dependabot update entries. |
Comments suppressed due to low confidence (1)
.github/dependabot.yml:23
- The
ignoreblock no longer includesMicrosoft.Bcl.AsyncInterfaces, but the PR description only mentions cooldowns/hardening and the inline comment says to see justifications inDirectory.Packages.props. If this removal is unintended, re-add the ignore entry (or update the PR description/justification to explain why it’s no longer needed).
ignore: # See justifications in Directory.Packages.props
- dependency-name: "System.Formats.Asn1"
update-types: ["version-update:semver-major"]
- dependency-name: "Microsoft.Extensions.Logging.Abstractions"
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
drieseng
approved these changes
Apr 12, 2026
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.
There is a lot of discussion about supply chain security and package compromise at the moment. This updates some of the yml in that respect:
permissions: contents: readin build.ymlpersist-credentials: falseon checkoutreleaseevent triggerThese recommendations were generated by https://github.com/zizmorcore/zizmor and AI review