Skip to content
プロジェクト

概要

ghir is a CLI making past GitHub Releases immutable

開発ツール

この数値の測り方

計測したスター増加

24時間
0
7日間
0
15日間
0
1か月
履歴を収集中

期間ごとの純増数です。期間は重複しており、日別の値ではありません。未計測の値は空欄です。スター数は注目度の指標であり、品質の保証ではありません。

ghir (GitHub Immutable Releases)

Ask DeepWiki Install

ghir is a CLI making past GitHub Releases immutable.

About GitHub Immutable Releases, please see the following links:

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

  1. Enable Immutable Releases
  2. 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:

  1. Environment Variables
    1. GHIR_GITHUB_TOKEN
    2. GITHUB_TOKEN
  2. ghtkn integration
    1. export GHIR_ENABLE_GHTKN=true
    2. export GHTKN_ENABLE=true
    3. If the configuration file of ghtkn exists, the integration is enabled

How It Works

  1. Get GitHub Releases by GitHub API
  2. Exclude draft releases and immutable releases
  3. 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

gh repo list [<owner>] \
  --source \
  --no-archived \
  --json nameWithOwner \
  --template '{{range .}}{{.nameWithOwner}}{{"\n"}}{{end}}' \
  --limit 100 |
  xargs -n 1 ghir

関連プロジェクトを探す

読み込み中…