[MAINT] Github Actions Reunification - `sansec-ecomscan`
@damienwebdev ya está trabajando en esto.
Desde el 6/5/2026.
Evaluación
Este issue todavía no se ha evaluado.
Descripción
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
- Lenguaje dominante
- TypeScript
- Estrellas
- 12
- Forks
- 15
- Merge medio
- 3 d 15 h
- PR fusionados (30 d)
- 5
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Tiene una plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de mage-os/github-actions
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 75/100
mage-os/github-actions#341 ·
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 80/100
mage-os/github-actions#340 ·
-
Dificultad 3/5 1-2 días Aptitud para principiantes 35/100
mage-os/github-actions#364 ·
-
Dificultad 3/5 Medio día Aptitud para principiantes 65/100
mage-os/github-actions#363 ·
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 35/100
mage-os/github-actions#359 · 3 comentarios ·
Todos los issues de mage-os/github-actions
Issues similares
-
api bug priority:low ready-for-agent
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
wondermoney/wondermoney#862 ·
Los mantenedores suelen responder en 1 día
-
good first issue help wanted
Dificultad 2/5 1-3 horas Aptitud para principiantes 84/100
rootsiemen/seo-agent-tools#70 ·
Los mantenedores suelen responder en 1 día
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
alvinunreal/oh-my-opencode-slim#1971 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 77/100
elecnix/bellwether#467 ·
Los mantenedores suelen responder en 1 día
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
Los mantenedores suelen responder en 1 día