Skip to content

fix(fwdcloudsec/granted): set type to GitHub release#51713

Merged
suzuki-shunsuke merged 5 commits into
aquaproj:mainfrom
tmeijn:fix/github-release-for-granted
Apr 15, 2026
Merged

fix(fwdcloudsec/granted): set type to GitHub release#51713
suzuki-shunsuke merged 5 commits into
aquaproj:mainfrom
tmeijn:fix/github-release-for-granted

Conversation

@tmeijn

@tmeijn tmeijn commented Apr 8, 2026

Copy link
Copy Markdown
Contributor

Check List

This PR sets the type to github_release and adds checksum verification from version 0.35.0 onward. Since 0.35.0 prebuilt binaries are also distributed through GitHub releases which I think is the preferred platform.

There is an issue with version 0.39.0 specifically that did not publish prebuilt Darwin binaries, not even on releases.granted.dev. See fwdcloudsec/granted#936 for some more information.

References:

Summary by CodeRabbit

  • Chores
    • Updated granted package support: advanced to v0.39.0 and added a pinned v0.35.0 entry.
    • Per-version distribution strategy: older releases use HTTP downloads, newer releases use GitHub Releases with versioned assets.
    • Added checksum verification for GitHub release artifacts.
    • v0.39.0 now targets linux and windows packaging specifics; platform packaging rules vary by version.

@coderabbitai

coderabbitai Bot commented Apr 8, 2026

Copy link
Copy Markdown
📝 Walkthrough

Walkthrough

Refactored fwdcloudsec/granted package resolution to per-version rules: bumped pkg entry to v0.39.0, added a pinned v0.35.0 entry, and replaced a single HTTP source with version_overrides that select between http and github_release, asset patterns, checksums, and platform overrides.

Changes

Cohort / File(s) Summary
Package Version Updates
pkgs/fwdcloudsec/granted/pkg.yaml
Bumped fwdcloudsec/granted@v0.38.0@v0.39.0 and added an extra fwdcloudsec/granted entry pinned to version: v0.35.0.
Local package registry
pkgs/fwdcloudsec/granted/registry.yaml
Replaced single http-style url/format entry with a base version_constraint: "false" and version_overrides for semver("< 0.35.0"), = 0.39.0, and a catch-all — switching between http and github_release, adding asset patterns, GitHub checksum retrieval, supported_envs, and per-version platform overrides (Windows zip; macOS file/link).
Global registry entries
registry.yaml
Mirrors local registry change: removed top-level url/format in favor of version_overrides with three cases (< 0.35.0, = 0.39.0, default) selecting source type, asset naming, checksum config, and platform-specific overrides.

Sequence Diagram(s)

sequenceDiagram
  participant Resolver as Package Resolver
  participant Registry as Package Registry (version_overrides)
  participant HTTP as HTTP Host
  participant GH as GitHub Releases
  participant Installer as Installer / Platform Handler

  Resolver->>Registry: request package + version
  Registry-->>Resolver: select matching version_override
  alt semver("< 0.35.0") -> http
    Resolver->>HTTP: download asset URL (tar.gz)
  else semver("= 0.39.0") or default -> github_release
    Resolver->>GH: fetch release asset and checksums
  end
  Resolver->>Installer: provide artifact + chosen overrides
  Installer->>Installer: apply Windows/Darwin overrides, extract/install
Loading

Estimated code review effort

🎯 4 (Complex) | ⏱️ ~45 minutes

Possibly related PRs

Suggested labels

enhancement

Poem

🐇 A hop through manifests, versions bright,

v0.35 tucked in, v0.39 takes flight,
Overrides nested, assets in line,
Checksums checked, platforms all fine,
I nibble bytes and dance by moonlight.

🚥 Pre-merge checks | ✅ 3
✅ Passed checks (3 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly summarizes the main change: switching the fwdcloudsec/granted package source type to GitHub release, which aligns with the primary objectives of the changeset.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Description check ✅ Passed The pull request description is complete and well-structured, following the required template with both checklist items checked and detailed explanation of changes.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🧹 Nitpick comments (2)
registry.yaml (1)

37787-37802: Make the catch-all branch mirror the latest known release layout.

The "true" override currently restores the darwin file/link handling from the older branch, so any future version will default back to macOS binaries unless another override is added. The v0.39.0 release notes say prebuilt macOS binaries are not currently available, and aqua’s version_overrides style guide recommends making the last override represent the latest known layout. I’d either make the catch-all branch match the v0.39.0 linux/windows-only config or cap the darwin-enabled branch at < 0.39.0 until macOS assets return. (github.com)

♻️ Possible reshape
-      - version_constraint: "true"
+      - version_constraint: semver(">= 0.35.0, < 0.39.0")
         type: github_release
-        repo_owner: fwdcloudsec
-        repo_name: granted
         asset: granted_{{trimV .Version}}_{{.OS}}_{{.Arch}}.{{.Format}}
         format: tar.gz
         overrides:
         - goos: windows
           format: zip
         - goos: darwin
           files:
             - name: granted
             - name: assume
             - name: assumego
               src: granted
               link: assumego
+      - version_constraint: "true"
+        type: github_release
+        asset: granted_{{trimV .Version}}_{{.OS}}_{{.Arch}}.{{.Format}}
+        format: tar.gz
+        supported_envs:
+          - linux
+          - windows
+        overrides:
+        - goos: windows
+          format: zip
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@registry.yaml` around lines 37787 - 37802, The catch-all github_release block
(version_constraint: "true") currently restores the darwin file/link handling;
update it so the default mirrors the latest known release layout
(linux/windows-only) or else constrain the darwin-enabled override to versions <
0.39.0: either remove the darwin files/link entries from the catch-all and keep
only the linux (tar.gz) and windows (zip) overrides, or change the darwin
override to include version_constraint: "< 0.39.0" while leaving the catch-all
as the linux/windows-only layout; adjust the asset/format/overrides entries for
repo_owner: fwdcloudsec and repo_name: granted accordingly.
pkgs/fwdcloudsec/granted/registry.yaml (1)

42-57: Consider removing redundant repo_owner and repo_name.

These fields (lines 44-45) duplicate the top-level values from lines 4-5. Version overrides inherit from the parent configuration, so they can be omitted.

♻️ Suggested cleanup
       - version_constraint: "true"
         type: github_release
-        repo_owner: fwdcloudsec
-        repo_name: granted
         asset: granted_{{trimV .Version}}_{{.OS}}_{{.Arch}}.{{.Format}}
         format: tar.gz
         overrides:

As per coding guidelines: "Omit settings equivalent to default values (name, link, files entries when derivable from repo_owner and repo_name)".

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@pkgs/fwdcloudsec/granted/registry.yaml` around lines 42 - 57, The
registry.yaml override block currently repeats top-level repo_owner and
repo_name values—remove the redundant repo_owner and repo_name keys inside the
github_release entry (the override that contains asset: granted_{{trimV
.Version}}_{{.OS}}_{{.Arch}}.{{.Format}} and overrides: - goos: windows ... -
goos: darwin ...) so the override inherits the parent repo_owner/repo_name;
ensure the overrides retain only keys that differ (format, files, src/link
entries) and validate YAML after removing those two fields.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Nitpick comments:
In `@pkgs/fwdcloudsec/granted/registry.yaml`:
- Around line 42-57: The registry.yaml override block currently repeats
top-level repo_owner and repo_name values—remove the redundant repo_owner and
repo_name keys inside the github_release entry (the override that contains
asset: granted_{{trimV .Version}}_{{.OS}}_{{.Arch}}.{{.Format}} and overrides: -
goos: windows ... - goos: darwin ...) so the override inherits the parent
repo_owner/repo_name; ensure the overrides retain only keys that differ (format,
files, src/link entries) and validate YAML after removing those two fields.

In `@registry.yaml`:
- Around line 37787-37802: The catch-all github_release block
(version_constraint: "true") currently restores the darwin file/link handling;
update it so the default mirrors the latest known release layout
(linux/windows-only) or else constrain the darwin-enabled override to versions <
0.39.0: either remove the darwin files/link entries from the catch-all and keep
only the linux (tar.gz) and windows (zip) overrides, or change the darwin
override to include version_constraint: "< 0.39.0" while leaving the catch-all
as the linux/windows-only layout; adjust the asset/format/overrides entries for
repo_owner: fwdcloudsec and repo_name: granted accordingly.

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 4853cbe7-ce75-4da5-8dec-08dd955c6aa2

📥 Commits

Reviewing files that changed from the base of the PR and between e7726d7 and dfddd0d.

📒 Files selected for processing (3)
  • pkgs/fwdcloudsec/granted/pkg.yaml
  • pkgs/fwdcloudsec/granted/registry.yaml
  • registry.yaml

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🧹 Nitpick comments (1)
registry.yaml (1)

37793-37794: Consider removing redundant repo_owner and repo_name.

These fields are already defined in the base entry (lines 37749-37750) and should be inherited by the version_override.

♻️ Proposed diff
       - version_constraint: "true"
         type: github_release
-        repo_owner: fwdcloudsec
-        repo_name: granted
         asset: granted_{{trimV .Version}}_{{.OS}}_{{.Arch}}.{{.Format}}
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@registry.yaml` around lines 37793 - 37794, Remove the redundant repo_owner
and repo_name entries from the version_override block so it inherits those
values from the base entry; locate the recurring keys named repo_owner and
repo_name in the version_override section (they currently duplicate the base
entry values) and delete them, leaving only the override-specific fields so the
base definitions are used.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Nitpick comments:
In `@registry.yaml`:
- Around line 37793-37794: Remove the redundant repo_owner and repo_name entries
from the version_override block so it inherits those values from the base entry;
locate the recurring keys named repo_owner and repo_name in the version_override
section (they currently duplicate the base entry values) and delete them,
leaving only the override-specific fields so the base definitions are used.

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 8a8ff297-b44a-4a42-8d5c-bd7446d3f5ed

📥 Commits

Reviewing files that changed from the base of the PR and between dfddd0d and ab0cd71.

📒 Files selected for processing (2)
  • pkgs/fwdcloudsec/granted/registry.yaml
  • registry.yaml
✅ Files skipped from review due to trivial changes (1)
  • pkgs/fwdcloudsec/granted/registry.yaml

@tmeijn

tmeijn commented Apr 8, 2026

Copy link
Copy Markdown
Contributor Author

Hey @garysassano, saw your Pull Request only after I started working on this, hope you don't mind.

I took a bit of a different approach, where I'm switching to GitHub Release from version 0.35.0 onward. Feel free to leave any feedback!

@suzuki-shunsuke suzuki-shunsuke added this to the v4.494.1 milestone Apr 15, 2026
@suzuki-shunsuke

Copy link
Copy Markdown
Member

Thank you!

@suzuki-shunsuke suzuki-shunsuke merged commit c99e46c into aquaproj:main Apr 15, 2026
19 checks passed
@github-project-automation github-project-automation Bot moved this to Done in main Apr 15, 2026
@suzuki-shunsuke

Copy link
Copy Markdown
Member

tmeijn pushed a commit to tmeijn/dotfiles that referenced this pull request Apr 16, 2026
This MR contains the following updates:

| Package | Update | Change |
|---|---|---|
| [aquaproj/aqua-registry](https://github.com/aquaproj/aqua-registry) | minor | `v4.493.0` → `v4.494.1` |

MR created with the help of [el-capitano/tools/renovate-bot](https://gitlab.com/el-capitano/tools/renovate-bot).

**Proposed changes to behavior should be submitted there as MRs.**

---

### Release Notes

<details>
<summary>aquaproj/aqua-registry (aquaproj/aqua-registry)</summary>

### [`v4.494.1`](https://github.com/aquaproj/aqua-registry/releases/tag/v4.494.1)

[Compare Source](aquaproj/aqua-registry@v4.494.0...v4.494.1)

[Issues](https://github.com/aquaproj/aqua-registry/issues?q=is%3Aissue+milestone%3Av4.494.1) | [Merge Requests](https://github.com/aquaproj/aqua-registry/pulls?q=is%3Apr+milestone%3Av4.494.1) | <aquaproj/aqua-registry@v4.494.0...v4.494.1>

#### Fixes

[#&#8203;51713](aquaproj/aqua-registry#51713) [#&#8203;51207](aquaproj/aqua-registry#51207) Fix fwdcloudsec/granted [@&#8203;garysassano](https://github.com/garysassano) [@&#8203;tmeijn](https://github.com/tmeijn)
[#&#8203;51661](aquaproj/aqua-registry#51661) Rescaffold watchexec/watchexec [@&#8203;sanemat](https://github.com/sanemat)

### [`v4.494.0`](https://github.com/aquaproj/aqua-registry/releases/tag/v4.494.0)

[Compare Source](aquaproj/aqua-registry@v4.493.0...v4.494.0)

[Issues](https://github.com/aquaproj/aqua-registry/issues?q=is%3Aissue+milestone%3Av4.494.0) | [Merge Requests](https://github.com/aquaproj/aqua-registry/pulls?q=is%3Apr+milestone%3Av4.494.0) | <aquaproj/aqua-registry@v4.493.0...v4.494.0>

#### 🎉 New Packages

[#&#8203;52040](aquaproj/aqua-registry#52040) [max-sixty/worktrunk](https://github.com/max-sixty/worktrunk) - Worktrunk is a CLI for Git worktree management, designed for parallel AI agent workflows [@&#8203;edouardr](https://github.com/edouardr)
[#&#8203;52035](aquaproj/aqua-registry#52035) [santosr2/TerraTidy](https://github.com/santosr2/TerraTidy): A comprehensive quality platform for Terraform and Terragrunt
[#&#8203;51616](aquaproj/aqua-registry#51616) [rose-pine/rose-pine-bloom](https://github.com/rose-pine/rose-pine-bloom) - Generate Rosé Pine themes [@&#8203;yudai-nkt](https://github.com/yudai-nkt)

#### Security

[#&#8203;52022](aquaproj/aqua-registry#52022) rvben/rumdl: GitHub artifact attestations config [@&#8203;scop](https://github.com/scop)

</details>

---

### Configuration

📅 **Schedule**: (UTC)

- Branch creation
  - At any time (no schedule defined)
- Automerge
  - At any time (no schedule defined)

🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.

♻ **Rebasing**: Whenever MR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 **Ignore**: Close this MR and you won't be reminded about this update again.

---

 - [ ] <!-- rebase-check -->If you want to rebase/retry this MR, check this box

---

This MR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0My4xMjAuMSIsInVwZGF0ZWRJblZlciI6IjQzLjEyMC4xIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6WyJSZW5vdmF0ZSBCb3QiLCJhdXRvbWF0aW9uOmJvdC1hdXRob3JlZCIsImRlcGVuZGVuY3ktdHlwZTo6bWlub3IiXX0=-->
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.

New binaries location for Granted

2 participants