feat(action): trust-check/validate-source-branch - Validate PR source branch
@aRustyDev がすでに取り組んでいます。
2026年1月27日 から。
評価
この issue はまだ評価されていません。
説明
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 はありません
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
aRustyDev/gh のほかの issue
-
dependencies github-actions
難易度 1/5 1時間未満 初心者へのやさしさ 10/100
-
dependencies github-actions
難易度 1/5 1時間未満 初心者へのやさしさ 15/100
-
dependencies github-actions
難易度 1/5 1時間未満 初心者へのやさしさ 50/100
-
dependencies github-actions
難易度 2/5 1〜3時間 初心者へのやさしさ 20/100
-
dependencies github-actions
難易度 2/5 1〜3時間 初心者へのやさしさ 10/100
似ている issue
-
command: monitor command: update info: steamcmd reproducible: always severity: medium type: bug
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
GameServerManagers/LinuxGSM#4997 ·
メンテナーはふだん 1 日以内に返信
-
area:space-accuracy good first issue track:data
難易度 2/5 1〜3時間 初心者へのやさしさ 85/100
Sara-Managed-Projects/space-radar#886 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
zerocracy/judges-action#2733 ·
メンテナーはふだん 8 日以内に返信
-
[Nginx] Warning: duplicate extension "wasm" in nextcloud.conf対応中かも このイシューにリンクされたプルリクエストがオープン中、またはマージ済みです。 オープン
難易度 1/5 1時間未満 初心者へのやさしさ 74/100
YunoHost-Apps/nextcloud_ynh#916 ·
メンテナーはふだん 1 日以内に返信
-
dependencies feature github_actions good first issue
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
wemake-services/wemake-django-template#3149 ·
メンテナーはふだん 1 日以内に返信