Repository navigation
fix(ci): SBOM attach acha a raiz do repo; badge do SBOM le o evento release - #2159
Merged
Merged
Conversation
python3 as a file put scripts/ on sys.path, so patching native_packages onto release-manifest.json failed. Docker generate/check keep the image PYTHONPATH. README SBOM badge now filters event=release. Refs #2158
…H e badge (#2158, sbom.yml e arquivo de gate) | 2026-11-02 ``` -----BEGIN SSH SIGNATURE----- U1NIU0lHAAAAAQAAADMAAAALc3NoLWVkMjU1MTkAAAAgyEpOM79Y37xE8qOhlhghEfLh9P TzRdk6n8nzLfBNGqwAAAAEZmlsZQAAAAAAAAAGc2hhNTEyAAAAUwAAAAtzc2gtZWQyNTUx OQAAAEB+nWipS7mlC6mNkT8uqVNnUNGxHz6QfecbJRgaht1aMPvfX5W49tjbL74fniOEp7 pCTG7JAteygzn74iW6iN8E -----END SSH SIGNATURE----- ```
Collaborator
Author
|
Gate-Change-Approved-By: @FabioLeitao (#2159) | SBOM attach PYTHONPATH e badge (#2158, sbom.yml e arquivo de gate) | head=f58fb503bc03c36cbd2a2dd956ff6473ee82c855 | 2026-11-02 |
This was referenced Nov 2, 2026
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.
Corrige o passo de anexar SBOM/proveniencia a Release e o badge do SBOM no README (#2158).
Problema: o run do SBOM disparado pela Release v1.8.0 (https://github.com/DataBoar/data-boar/actions/runs/41360858864) terminou vermelho no passo "Attach SBOMs to GitHub Release (when applicable)".
python3 scripts/generate_release_manifest.py --patch-native-into ...falha emscripts/generate_release_manifest.pylinha 20 comModuleNotFoundError: No module named 'scripts': rodado como arquivo, o Python poescripts/nosys.path, nao a raiz do repo. Esse ramo so roda quandorelease-manifest.jsonja esta anexado a Release (o workflow de pacotes nativos chegou primeiro) e nao era exercitado em releases anteriores. Os assets da Release v1.8.0 estao todos presentes; o que o run vermelho nao fez foi chegar aos passos de emitir/verificar a proveniencia.Mudancas:
.github/workflows/sbom.yml: so a chamada do passo de anexar ganhaPYTHONPATH="${GITHUB_WORKSPACE:-$PWD}". As chamadas dentro do container (python scripts/generate_release_manifest.py --out/--check) ficam como estao: funcionam porque oDockerfiledefinePYTHONPATH=/extras:/app.README.mdeREADME.pt_BR.md: o badge do SBOM passa a ler?event=release. O badge lia o ultimo run damain, e osbom.ymlnao roda mais em push namain, entao mostrava uma falha antiga de 2026-06-10.--patch-native-into/--preserve-native-fromganha cobertura (chamada direta e como script);tests/test_github_workflows.pytrava que o passo de anexar define oPYTHONPATH(esse teste falha no workflow antigo e passa no novo) e que as chamadas do container nao mudam;tests/test_readme_status_badges.pyacompanha a URL nova do badge..github/workflows/sbom.ymle arquivo de gate: a PR precisa do selo do operador (attest-kombi). Re-rodar o run antigo da Release nao pega o conserto (usa o workflow do commit da tag); depois do merge o caminho eworkflow_dispatchnamain.Fora desta PR: verificar a proveniencia do 1.8.0 (
emit_provenance.py verify) e a frase do smoke do RC emdocs/releases/1.8.0.md.Verificacao local: testes alterados passam (68);
zizmorsem achados;actionlintreporta 2 itens que ja existem namain(linhas 78 e 257, fora do diff). Ocheck-allno host termina com 5 falhas de ambiente (4 de licenciamento, porque o host tem licenca real instalada, etest_main_web_transport_cli, porta 8766 ocupada). O CI, em ambiente limpo, e o gate.Refs #2158