fix(aqua): support github_artifact_attestations.enabled#6372
Conversation
There was a problem hiding this comment.
Pull Request Overview
This PR adds support for the enabled field in GitHub artifact attestations configuration, allowing packages to explicitly disable attestation verification. The change introduces a new optional boolean field and updates the verification logic to respect this setting.
- Added
enabledfield toAquaGithubArtifactAttestationsstruct - Modified verification logic to skip attestation checks when
enabledis false - Implemented merge functionality for GitHub artifact attestations configuration
Reviewed Changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
src/backend/aqua.rs |
Updated attestation verification logic to check the enabled field and skip verification when disabled |
crates/aqua-registry/src/types.rs |
Added enabled field to attestations struct and implemented merge functionality for configuration overrides |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
|
bugbot run |
|
bugbot run |
| return Err(eyre!( | ||
| "GitHub attestations verification failed for {tv}: {e}" | ||
| )); | ||
| } |
There was a problem hiding this comment.
Bug: Attestation Verification Skips Unconfigured Packages
Attestation verification now only runs for packages with explicit github_artifact_attestations configuration. Previously, verification was attempted for all packages (when globally enabled). This change unintentionally skips verification for packages without explicit configuration, which is a security regression.
### 📦 Registry - replace amplify-cli github backend with ubi by @eggplants in [#6396](#6396) ### 🚀 Features - **(template)** add read_file() function by @jdx in [#6400](#6400) ### 🐛 Bug Fixes - **(aqua)** support github_artifact_attestations.enabled by @risu729 in [#6372](#6372) - use /c instead of -c on windows in postinstall hook by @risu729 in [#6397](#6397) ### 🧪 Testing - **(test-tool)** uninstall all versions and clear cache before installation by @jdx in [#6393](#6393) ### New Contributors - @eggplants made their first contribution in [#6396](#6396) Co-authored-by: mise-en-dev <release@mise.jdx.dev>
## [2025.9.18](https://github.com/jdx/mise/compare/v2025.9.17..v2025.9.18) - 2025-09-24 ### 📦 Registry - replace amplify-cli github backend with ubi by @eggplants in [#6396](jdx/mise#6396) ### 🚀 Features - **(template)** add read_file() function by @jdx in [#6400](jdx/mise#6400) ### 🐛 Bug Fixes - **(aqua)** support github_artifact_attestations.enabled by @risu729 in [#6372](jdx/mise#6372) - use /c instead of -c on windows in postinstall hook by @risu729 in [#6397](jdx/mise#6397) ### 🧪 Testing - **(test-tool)** uninstall all versions and clear cache before installation by @jdx in [#6393](jdx/mise#6393) ### New Contributors - @eggplants made their first contribution in [#6396](jdx/mise#6396) ## [2025.9.17](https://github.com/jdx/mise/compare/v2025.9.16..v2025.9.17) - 2025-09-24 ### 🚀 Features - **(java)** add support for Liberica NIK releases by @roele in [#6382](jdx/mise#6382) ### 🐛 Bug Fixes - **(toolset)** handle underflow in version_sub function by @koh-sh in [#6389](jdx/mise#6389) ### 📚 Documentation - document MISE_ENV behavior for global/system configs by @jdx in [#6385](jdx/mise#6385) ### New Contributors - @jc00ke made their first contribution in [#6386](jdx/mise#6386) - @koh-sh made their first contribution in [#6389](jdx/mise#6389)
## [2025.9.18](https://github.com/jdx/mise/compare/v2025.9.17..v2025.9.18) - 2025-09-24 ### 📦 Registry - replace amplify-cli github backend with ubi by @eggplants in [#6396](jdx/mise#6396) ### 🚀 Features - **(template)** add read_file() function by @jdx in [#6400](jdx/mise#6400) ### 🐛 Bug Fixes - **(aqua)** support github_artifact_attestations.enabled by @risu729 in [#6372](jdx/mise#6372) - use /c instead of -c on windows in postinstall hook by @risu729 in [#6397](jdx/mise#6397) ### 🧪 Testing - **(test-tool)** uninstall all versions and clear cache before installation by @jdx in [#6393](jdx/mise#6393) ### New Contributors - @eggplants made their first contribution in [#6396](jdx/mise#6396) ## [2025.9.17](https://github.com/jdx/mise/compare/v2025.9.16..v2025.9.17) - 2025-09-24 ### 🚀 Features - **(java)** add support for Liberica NIK releases by @roele in [#6382](jdx/mise#6382) ### 🐛 Bug Fixes - **(toolset)** handle underflow in version_sub function by @koh-sh in [#6389](jdx/mise#6389) ### 📚 Documentation - document MISE_ENV behavior for global/system configs by @jdx in [#6385](jdx/mise#6385) ### New Contributors - @jc00ke made their first contribution in [#6386](jdx/mise#6386) - @koh-sh made their first contribution in [#6389](jdx/mise#6389)
It's currently now used, but might be used in the future to ignore it.