Repository navigation
ci: OpenSSF Scorecard, CodeQL semanal y releases con release-please - #4
Merged
Merged
Conversation
- ci.yml: weekly schedule (Mondays 06:23 UTC) so CodeQL also runs without new pushes. - scorecard.yml: OpenSSF Scorecard with publish_results, SARIF to Code Scanning, README badge. - release.yml: release-please through the central reusable workflow (v1.0.0), manifest mode with release-type simple; first release pinned to 0.1.0, no artifacts published. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problema
securitydeci.yml) sólo corría con push o PR: si el repo no tiene actividad, las nuevas consultas y avisos de CodeQL no se aplican.CHANGELOG.md.Qué cambia
ci.ymlsuma un triggerschedule(23 6 * * 1, lunes 06:23 UTC). El resto del workflow no cambia..github/workflows/scorecard.yml), con las restricciones deossf/scorecard-actionparapublish_results: true:branch_protection_rule,schedulesemanal (41 6 * * 1) ypushamaster;permissions: {}arriba; el job tienecontents: read,actions: read,security-events: writeeid-token: write;env/defaultsni pasosrun:; sólo harden-runner, checkout (persist-credentials: false), scorecard-action, upload-artifact ycodeql-action/upload-sarif;# vX.Y.Z: las compartidas reutilizan los SHA dereusable-workflowsv1.0.0 yossf/scorecard-actionqueda enfa7117db83c52d787ae5a89f350999701505d78e # v2.5.0(tag anotado ya resuelto a su commit).release.ymldeAZapata27/reusable-workflows(mismo SHAdd1bf38…, v1.0.0):.github/workflows/release.ymlcorre con push amaster. Pide los permisos que exige el reusable (contents,issues,pull-requestsde escritura, másid-tokenyattestationscomo techo del job de provenance, que queda omitido porque no se pasaartifact-name).release-please-config.json+.release-please-manifest.jsonen modo manifest,release-type: simple, tagsvX.Y.Zy las mismas secciones de changelog quereusable-workflows.version.txt(0.0.0) es el archivo que release-please actualiza en el tiposimple. La primera release se fija en 0.1.0 conrelease-as.Cómo se usa
feat:,fix:, …) amaster→ release-please abre o actualiza un PR de release → al hacer merge crea el tagvX.Y.Z, la GitHub Release yCHANGELOG.md.Casos borde
release-asderelease-please-config.jsondespués de publicar 0.1.0. Si queda, release-please vuelve a proponer 0.1.0.bump-minor-pre-major: true, mientras la versión sea 0.x un cambio incompatible sube la minor, no la major.GITHUB_TOKEN, así que no dispara CI sobre ese PR. Con los checks requeridos del ruleset no se puede hacer merge hasta que corran: hay que relanzarlos (por ejemplo, cerrando y reabriendo el PR o con un push vacío) o configurar el secretorelease-token(PAT o GitHub App) en el caller. Hay que hacer un cambio antes del merge: en este repo el ajuste Settings → Actions → General → Allow GitHub Actions to create and approve pull requests está desactivado (can_approve_pull_request_reviews: false). Mientras siga así, release-please no puede abrir el PR de release. Enreusable-workflowsya está activo. Este PR no lo cambia.version.txtes la versión del repositorio. Las versiones de los archivos de build (-SNAPSHOT) no se tocan.ci.ymltambién corre build y workflow-lint, no sólo CodeQL. Es un costo semanal aceptable.pull_request) y el badge mostrará datos después del primer push amaster.Validación
actionlintv1.7.12 sin errores.zizmorv1.30.1 sin hallazgos de ninguna severidad (con auditorías online).🤖 Generated with Claude Code