Segurança: fixar por SHA as actions do codeql.yml e dos outros workflows

Open Beginner friendly
#341 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
72/100
Issue type
Refactor
Clarity
Clearly specified
Activity status
Active
Tech stack
github, github-actions, yaml
Domain
ci-cd, security

Research direction

Start with .github/workflows/codeql.yml, where actions/checkout@v7 and github/codeql-action/*@v4 are referenced by tag. Use boas-vindas.yml as the pattern for SHA pinning, and look up each tag's commit with the gh api command given in the issue. Replace each tag with its full SHA and keep the tag in a trailing comment such as # v7. Done when the CodeQL checks, including codeql (actions) and codeql (javascript-typescript), pass on the PR and the SHAs are cited there.

Written by the indexing model from the issue text.

Description

trilha:T10

Objetivo

Fixar por SHA as actions dos workflows que hoje usam tag. O primeiro é o codeql.yml, com actions/checkout@v7 e github/codeql-action/*@v4.

Motivo

A R19 do Esp SecOps no #339 achou um risco Baixo, que fica fora daquele PR. Uma tag pode ser movida para outro commit; um SHA não pode. Os workflows novos já são fixados por SHA (boas-vindas.yml), e os antigos ainda não. O Dependabot (github-actions, semanal) continua atualizando os SHAs.

Critérios de aceite

  • O codeql.yml usa cada action por SHA, com a tag num comentário ao lado (# v7).
  • Os SHAs foram conferidos com gh api repos/<dono>/<action>/git/ref/tags/<tag> e estão citados no PR.
  • Os outros workflows (ci.yml, pages.yml, imagem.yml, disponibilidade.yml e as varreduras) foram listados no PR com o que falta. Se couberem, entram no mesmo PR; se não, viram uma issue.
  • O CI fica verde, inclusive codeql (actions) e codeql (javascript-typescript).

Tamanho e prioridade

P (1 a 2 h) · p2. É Baixo e não bloqueia a abertura da quinta.

Fora do escopo

  • Trocar versões das actions: só fixar as que já são usadas.
  • Os PRs do Dependabot abertos (#305 a #309), que já mexem nessas linhas. Se um deles for mesclado antes, este PR parte da main nova.
Dominant language
JavaScript
Stars
0
Forks
0
Avg merge
15h 6m
Merged PRs (30d)
118

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from learnTECH-community/formacao-dev

All issues in learnTECH-community/formacao-dev

Similar issues

More JavaScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.