[MAINT] Github Actions Reunification - `sansec-ecomscan`
@damienwebdev がすでに取り組んでいます。
2026年5月6日 から。
評価
この issue はまだ評価されていません。
説明
Action: sansec-ecomscan (new)
Status: 🔴 Convert workflow → action
Source: .github/workflows/sansec-ecomscan.yml (mage-os-only)
Target: sansec-ecomscan/action.yml + .github/workflows/sansec-ecomscan.yml (thin caller)
What the workflow currently does
- Checks out the repo (
actions/checkout@v5,persist-credentials: false, PR head SHA) - Downloads the ecomscan binary from
https://ecomscan.com/downloads/linux-amd64/ecomscan chmod +x ecomscan- Runs
./ecomscan --no-auto-update --skip-database --deep --format=csv .withECOMSCAN_KEYenv var - Fails (
exit 1) if any output is produced
Dependents
No external repos call this workflow (per dependents.md). It is only used internally by mage-os/github-actions itself. This makes the conversion low risk.
Design decisions
- Checkout stays in the caller workflow — consistent with the pattern used by other actions in this repo (
setup-magento,coding-standardpost-refactor, etc.) - License key passed as an input — composite actions cannot read
secretsdirectly; callers must pass the value explicitly persist-credentials: falseandrefhandling — these checkout options are caller concerns and stay in the workflowpull_request_targettrigger and the push-on-PR skip guard — these are workflow-level concerns and stay in the caller
New action: sansec-ecomscan/action.yml
Inputs
| Input | Required | Description |
|---|---|---|
ecomscan_key |
true | Sansec license key (ECOMSCAN_KEY) |
Steps
- Download ecomscan binary
chmod +x ecomscan- Run ecomscan, fail on output
Updated workflow: .github/workflows/sansec-ecomscan.yml
Becomes a thin caller that handles checkout and trigger logic, then delegates to the action:
on:
push:
pull_request_target:
workflow_dispatch:
jobs:
run-ecomscan:
if: github.event.pull_request == null || github.event_name != 'push'
runs-on: ubuntu-latest
permissions:
contents: read
pull-requests: read
steps:
- uses: actions/checkout@v6
with:
ref: ${{ github.event.pull_request.head.sha }}
persist-credentials: false
- uses: mage-os/github-actions/sansec-ecomscan@main
with:
ecomscan_key: ${{ secrets.SANSEC_LICENSE_KEY }}
Implementation steps
- Create
sansec-ecomscan/action.ymlas a composite action with the download/chmod/run steps and anecomscan_keyinput - Update
.github/workflows/sansec-ecomscan.ymlto the thin caller above - Bump
actions/checkoutfromv5tov6in the workflow
- 主要言語
- TypeScript
- スター
- 12
- フォーク
- 15
- 平均マージ
- 3日 15時間
- マージ済み PR(30日)
- 5
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
mage-os/github-actions のほかの issue
-
難易度 1/5 1時間未満 初心者へのやさしさ 75/100
mage-os/github-actions#341 ·
-
難易度 1/5 1時間未満 初心者へのやさしさ 80/100
mage-os/github-actions#340 ·
-
難易度 3/5 1〜2日 初心者へのやさしさ 35/100
mage-os/github-actions#364 ·
-
難易度 3/5 半日 初心者へのやさしさ 65/100
mage-os/github-actions#363 ·
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 35/100
mage-os/github-actions#359 · コメント 3 件 ·
mage-os/github-actions の issue をすべて見る
似ている issue
-
api bug priority:low ready-for-agent
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
wondermoney/wondermoney#862 ·
メンテナーはふだん 1 日以内に返信
-
good first issue help wanted
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
rootsiemen/seo-agent-tools#70 ·
メンテナーはふだん 1 日以内に返信
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
alvinunreal/oh-my-opencode-slim#1971 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 77/100
elecnix/bellwether#467 ·
メンテナーはふだん 1 日以内に返信
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
メンテナーはふだん 1 日以内に返信