[MAINT] Github Actions Reunification - `sansec-ecomscan`
@damienwebdev ci sta già lavorando.
Dal 6/5/2026.
Valutazione
Questa issue non è ancora stata valutata.
Descrizione
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
- Lingua principale
- TypeScript
- Stelle
- 12
- Fork
- 15
- Merge medio
- 3g 15h
- PR unite (30g)
- 5
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Ha un modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di mage-os/github-actions
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 75/100
mage-os/github-actions#341 ·
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 80/100
mage-os/github-actions#340 ·
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 35/100
mage-os/github-actions#364 ·
-
Difficoltà 3/5 Mezza giornata Idoneità per principianti 65/100
mage-os/github-actions#363 ·
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 35/100
mage-os/github-actions#359 · 3 commenti ·
Tutte le issue di mage-os/github-actions
Issue simili
-
api bug priority:low ready-for-agent
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
wondermoney/wondermoney#862 ·
I maintainer di solito rispondono entro 1 giorno
-
good first issue help wanted
Difficoltà 2/5 1-3 ore Idoneità per principianti 84/100
rootsiemen/seo-agent-tools#70 ·
I maintainer di solito rispondono entro 1 giorno
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
alvinunreal/oh-my-opencode-slim#1971 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 77/100
elecnix/bellwether#467 ·
I maintainer di solito rispondono entro 1 giorno
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
I maintainer di solito rispondono entro 1 giorno