ci: fixa actions de terceiros em commit SHA - #16
Merged
Merged
Conversation
O CodeQL apontava nove alertas actions/unpinned-tag: actions de terceiros referenciadas por tag mutavel, que pode ser reapontada para outro commit a qualquer momento. Cada uma passa a ser referenciada pelo SHA, com a versao em comentario para o Dependabot continuar atualizando. Duas refs carregavam semantica alem da versao e precisaram de ajuste: - dtolnay/rust-toolchain@stable: a branch stable era o que selecionava a toolchain. Agora o SHA e o de master e a selecao vem de `toolchain: stable`. - taiki-e/install-action@cargo-llvm-cov: a tag nomeava a ferramenta, que passa para `tool: cargo-llvm-cov`.
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.
Resolve os nove alertas
actions/unpinned-tag(severidade média) do CodeQL: actions de terceiros referenciadas por tag mutável, que pode ser reapontada para outro commit a qualquer momento.Cada uma passa a ser referenciada pelo SHA, com a versão em comentário para o Dependabot continuar atualizando:
dtolnay/rust-toolchain(4×)@stable@02cb101# v1Swatinem/rust-cache(2×)@v2@6323deb# v2.9.2rustsec/audit-check@v2@69366f3# v2.0.0taiki-e/install-action@cargo-llvm-cov@94c31af# v2.87.17softprops/action-gh-release@v3@efb3536# v3.0.3Duas refs carregavam semântica além da versão e precisaram de ajuste:
dtolnay/rust-toolchain@stable— a branchstableera o que selecionava a toolchain. O SHA agora é o demastere a seleção vem detoolchain: stable.taiki-e/install-action@cargo-llvm-cov— a tag nomeava a ferramenta, que passa paratool: cargo-llvm-cov.As actions de
actions/*egithub/*não geram alerta e ficaram como estavam.Mesma mudança aplicada em NullSablex/env-samp#16.