Skip to content

fix(aqua): support github_artifact_attestations.enabled#6372

Merged
jdx merged 4 commits intojdx:mainfrom
risu729:attestations-enabled
Sep 24, 2025
Merged

fix(aqua): support github_artifact_attestations.enabled#6372
jdx merged 4 commits intojdx:mainfrom
risu729:attestations-enabled

Conversation

@risu729
Copy link
Contributor

@risu729 risu729 commented Sep 22, 2025

It's currently now used, but might be used in the future to ignore it.

Copilot AI review requested due to automatic review settings September 22, 2025 13:14
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

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 enabled field to AquaGithubArtifactAttestations struct
  • Modified verification logic to skip attestation checks when enabled is 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.

@risu729 risu729 marked this pull request as draft September 22, 2025 13:21
@risu729 risu729 marked this pull request as ready for review September 22, 2025 13:48
@jdx
Copy link
Owner

jdx commented Sep 22, 2025

bugbot run

@jdx
Copy link
Owner

jdx commented Sep 24, 2025

bugbot run

return Err(eyre!(
"GitHub attestations verification failed for {tv}: {e}"
));
}
Copy link

Choose a reason for hiding this comment

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

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.

Fix in Cursor Fix in Web

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is intended

@jdx jdx merged commit 38a5959 into jdx:main Sep 24, 2025
18 checks passed
@jdx jdx mentioned this pull request Sep 24, 2025
jdx added a commit that referenced this pull request Sep 25, 2025
### 📦 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>
@jdx jdx mentioned this pull request Sep 25, 2025
@risu729 risu729 deleted the attestations-enabled branch September 25, 2025 03:22
netbsd-srcmastr pushed a commit to NetBSD/pkgsrc that referenced this pull request Sep 25, 2025
## [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)
riastradh pushed a commit to riastradh/pkgsrc-test20250901 that referenced this pull request Feb 8, 2026
## [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)
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.

3 participants