Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

feat(action): trust-check/validate-source-branch - Validate PR source branch

オープン
#34 コメント 2 件 リアクション 0 件 担当者 1 名 GitHub で見る

@aRustyDev がすでに取り組んでいます。

2026年1月27日 から。

評価

この issue はまだ評価されていません。

説明

enhancement new-action

Parent Epic

Part of #22 (Atomic Release Pipeline Actions)

Priority

P2 - Security validation for W5

Description

Create a composite action that validates a PR's source branch matches an expected pattern.

Used to enforce that PRs to protected branches come from expected source branches.

Inputs

Input Required Default Description
source-branch Yes - The source branch of the PR
allowed-pattern Yes - Allowed branch pattern (glob supported)

Outputs

Output Description
valid "true" if branch matches pattern
pattern-matched The pattern that matched (for multiple patterns)

Usage Example

# Single pattern
- uses: arustydev/gha/actions/trust-check/validate-source-branch@v1
  with:
    source-branch: ${{ github.head_ref }}
    allowed-pattern: "charts/*"

# Multiple patterns (comma-separated)
- uses: arustydev/gha/actions/trust-check/validate-source-branch@v1
  with:
    source-branch: ${{ github.head_ref }}
    allowed-pattern: "charts/*,hotfix/*,release/*"

Source Reference

helm-charts/.github/scripts/attestation-lib.sh:

  • validate_source_branch() (lines 296-314)

Implementation Notes

  • Support glob patterns (e.g., charts/*)
  • Support multiple patterns (comma-separated)
  • Fail with clear error message on mismatch
主要言語
Shell
スター
0
フォーク
0
PR マージ指標
30日以内にマージされた PR はありません

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

aRustyDev/gh のほかの issue

aRustyDev/gh の issue をすべて見る

似ている issue

Shell/Bash の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。