Sobre
ghir is a CLI making past GitHub Releases immutable
Ferramentas de desenvolvimentoCrescimento medido de estrelas
- em 24 h
- 0
- em 7 dias
- 0
- em 15 dias
- 0
- em 1 mês
- Coletando histórico
Variações líquidas em períodos sobrepostos, não totais diários. Medições ausentes ficam em branco. Estrelas indicam interesse, não qualidade.
README.md
Originalghir (GitHub Immutable Releases)
ghir is a CLI making past GitHub Releases immutable.
About GitHub Immutable Releases, please see the following links:
- https://github.blog/changelog/2025-08-26-releases-now-support-immutability-in-public-preview/
- https://github.com/orgs/community/discussions/171210
Immutable Releases protect your software supply chain by preventing any changes to released assets. While enabling Immutable Releases is straightforward, previously created releases remain vulnerable. ghir is a CLI tool that secures your past releases by making them immutable.
How To Use
- Enable Immutable Releases
- Run ghir
ghir [--log-level <debug|info|warn|error>] <repo full name>
e.g.
ghir aquaproj/aqua
GitHub Access Token
ghir requires a GitHub Access Token.
- Required Permissions:
contents:write - Scopes (accessible repositories): A repository to be updated
The priority of the access token is as follows:
- Environment Variables
GHIR_GITHUB_TOKENGITHUB_TOKEN
- ghtkn integration
export GHIR_ENABLE_GHTKN=trueexport GHTKN_ENABLE=true- If the configuration file of ghtkn exists, the integration is enabled
How It Works
- Get GitHub Releases by GitHub API
- Exclude draft releases and immutable releases
- Update releases without any parameters by GitHub API to make all releases immutable
ProTip: Run ghir for multiple repositories
ghir alone can only be executed in a single repository.
However, by combining other tools, you can run ghir against multiple repositories.
Example 1: Use repository list file
cat repos.txt
username_or_orgname/foo
username_or_orgname/bar
cat repos.txt |
xargs -n 1 ghir
Example 2: Use gh repo list
gh repo list [<owner>] \
--source \
--no-archived \
--json nameWithOwner \
--template '{{range .}}{{.nameWithOwner}}{{"\n"}}{{end}}' \
--limit 100 |
xargs -n 1 ghir
Explore projetos relacionados
Carregando…