chore(ci): adicionar pipeline de release e melhorar quality gate#15
Merged
Conversation
- adiciona job build como primeiro da cadeia em ci.yml - adiciona concurrency para cancelar runs anteriores do mesmo PR - adiciona timeout-minutes: 10 em todos os jobs - quality gate explicito via thresholds do Vitest no job cobertura - upload do relatorio de cobertura como artifact (retencao 7 dias) - cria release.yml: pipeline por tags v*.*.* com security scan - aprovacao manual via environment producao no release - adiciona threshold statements: 80 no vitest.config.ts
|
| GitGuardian id | GitGuardian status | Secret | Commit | Filename | |
|---|---|---|---|---|---|
| 33202264 | Triggered | Username Password | f2b8034 | .github/workflows/release.yml | View secret |
🛠 Guidelines to remediate hardcoded secrets
- Understand the implications of revoking this secret by investigating where it is used in your code.
- Replace and store your secret safely. Learn here the best practices.
- Revoke and rotate this secret.
- If possible, rewrite git history. Rewriting git history is not a trivial act. You might completely break other contributing developers' workflow and you risk accidentally deleting legitimate data.
To avoid such incidents in the future consider
- following these best practices for managing and storing secrets including API keys and other credentials
- install secret detection on pre-commit to catch secret before it leaves your machine and ease remediation.
🦉 GitGuardian detects secrets in your source code to help developers and security teams secure the modern development process. You are seeing this because you or someone else with access to this repository has authorized GitGuardian to scan your pull request.
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.
Summary
buildjob as the first step in the pipeline chain (build → qualidade → testes-unitarios → testes-e2e → cobertura)concurrencyblock to auto-cancel duplicate runs for the same PR, preserving independent runs onmaintimeout-minutes: 10to every job to prevent runaway buildscoberturajob to "Cobertura e Quality Gate" — Vitest's--coveragenow enforces the 80% threshold natively (lines, functions, branches, statements), failing the pipeline when not metrelatorio-cobertura-<run_number>, 7-day retention) withif: always()so it's available even on threshold failuresstatements: 80tovitest.config.tscoverage thresholds (the other three dimensions were already configured).github/workflows/release.ymltriggered byv*.*.*tags with the full release pipeline:build → qualidade → testes-unitarios → testes-e2e → cobertura → security-scan → artifact-build → aprovacao-producaosecurity-scan:pnpm audit --audit-level=high— fails on high/critical vulnerabilitiesartifact-build: production-only install (--prod), compileddist/uploaded asdist-<tag>with 30-day retentionaprovacao-producao: usesenvironment: producaofor manual approval gate before the release is considered doneTest plan
buildjob runs beforequalidadepnpm test:coveragefails thecoberturajob when coverage drops below 80%v*.*.*tag and verify the full release pipeline triggerspnpm auditblocks the pipeline on known high/critical vulnerabilitiesaprovacao-producaopauses for manual approval (requires theproducaoenvironment configured in Settings > Environments)Configuration required
To activate the manual approval gate in
release.yml, create the environment in the repository:Settings → Environments → New environment → name: producao → add Required reviewers🤖 Generated with Claude Code