Document that `pull_request` can upload SARIF without `security-events: write`
Mantenedores costumam responder em até 1 dia
Ninguém assumiu esta issue ainda.
Avaliação
- Dificuldade
- 1/5
- Tempo estimado
- 1-3 horas
- Facilidade para iniciantes
- 86/100
- Tipo de issue
- Documentação
- Clareza
- Claramente especificada
- Status de atividade
- Ativa
- Stack de tecnologia
- github, github-actions
- Domínio
- documentation
Direção de pesquisa
Atualize a seção “Quem pode usar este recurso?” do artigo sobre as opções de configuração do workflow de code scanning indicado na issue. Leia as orientações de solução de problemas vinculadas e compare o comportamento de pull_request com os exemplos de push e schedule que exigem security-events: write. O trabalho estará concluído quando o artigo documentar claramente que execuções de pull_request podem carregar SARIF sem essa permissão, inclusive para pull requests de forks.
Escrita pelo modelo de indexação a partir do texto da issue.
Descrição
Code of Conduct
- I have read and agree to the GitHub Docs project's Code of Conduct
What article on docs.github.com is affected?
https://docs.github.com/en/code-security/reference/code-scanning/workflow-configuration-options
What part(s) of the article would you like to see updated?
Who can use this feature?
Users with write access if advanced setup is already enabled
To mention that pull_requests magically have security-events: write or something functionally equivalent to it.
Additional information
Confirming the cause of the error
If you're using Dependabot in your code scanning workflow, investigate the scope it's using.Uploading code scanning results for a branch usually requires the
security-events: writescope. However, code scanning always allows the uploading of results when thepull_requestevent triggers the action run. This is why, for Dependabot branches, we recommend you use thepull_requestevent instead of thepushevent.
Hallucinations follow:
-
The Actions workflow syntax
explains why fork PR tokens are read-only.Using the permissions key for forked repositories
You can use thepermissionskey to add and removereadpermissions for forked repositories, but typically you can't grantwriteaccess. The exception to this behavior is where an admin user has selected the Send write tokens to workflows from pull requests option in the GitHub Actions settings. For more information, see Managing GitHub Actions settings for a repository.-- this strongly hints that it's the only exception.
-
The code-scanning workflow guide
describes scanning onpull_requestwithout discussing the upload permission exception.Scanning pull requests
The default CodeQL analysis workflow uses thepull_requestevent to trigger a code scan on pull requests targeted against the default branch. If a pull request is from a private fork, thepull_requestevent will only be triggered if you've selected the "Run workflows from fork pull requests" option in the repository settings. For more information, see Managing GitHub Actions settings for a repository.-- doesn't mention
permissions:at all -
The SARIF upload guide
labelssecurity-events: writeas “required for all workflows” in examples that run onpushandschedule.Who can use this feature?
Users with write accessCode scanning is available for the following repository types:
- Public repositories on GitHub.com
- Organization-owned repositories on GitHub Team, GitHub Enterprise Cloud, or GitHub Enterprise Server, with GitHub Code Security enabled.
-- doesn't mention
pull_requestat all- https://github.com/check-spelling-outlook/curly-giggle-ideal-garbanzo/pull/12
(https://github.com/check-spelling-outlook/curly-giggle-ideal-garbanzo/actions/runs/46330116831/job/141558162788)
is about what GitHub accepts from a job token:
A workflow triggered bypull_requestcan upload code-scanning results for that pull request usingGITHUB_TOKENeven when the token lackssecurity-events: write, including for pull requests from forks (by users who do not have an affiliation with the PR target repo).
- Linguagem predominante
- TypeScript
- Estrelas
- 21.6k
- Forks
- 69.7k
- Merge médio
- 8h 11min
- PRs com merge (30d)
- 100
Preparar o ambiente
Inicia o contêiner de desenvolvimento do projeto no navegador, com a sua própria conta do GitHub.
- Inclui um Dockerfile ou arquivo Docker Compose
- Tem um modelo de pull request
- Ler o guia de contribuição
Primeiros passos
- Leia a issue inteira e depois o guia de contribuição do projeto.
- Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
- Faça um fork do repositório e trabalhe em uma branch.
- Abra um pull request que referencie o número da issue.
Mais de github/docs
-
Codespaces user secrets guide describes logout behavior from older GitHub CLI versionsTalvez já em andamento @Jostar2 assumiu hoje. Abertatriage
Dificuldade 1/5 Menos de uma hora Facilidade para iniciantes 92/100
github/docs#47156 · 1 comentário ·
Mantenedores costumam responder em até 1 dia
-
content localization
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 68/100
github/docs#47125 · 3 comentários ·
Mantenedores costumam responder em até 1 dia
-
content localization
Dificuldade 1/5 1-3 horas Facilidade para iniciantes 75/100
github/docs#47093 · 4 comentários ·
Mantenedores costumam responder em até 1 dia
-
Remove deprecated node20 option from Actions MetadataTalvez já em andamento @Netail assumiu há 11 dias. Abertacontent skip-spammy-check
Dificuldade 1/5 Menos de uma hora Facilidade para iniciantes 70/100
github/docs#47020 · 2 comentários ·
Mantenedores costumam responder em até 1 dia
-
SSH key pages: add the 3072-bit RSA rule and an ssh-keygen -lf check to the NoteTalvez livre de novo Um pull request para esta issue foi fechado sem ser mesclado. Abertabuilder persona content
Dificuldade 1/5 1-3 horas Facilidade para iniciantes 88/100
github/docs#47001 · 3 comentários ·
Mantenedores costumam responder em até 1 dia
Todas as issues de github/docs
Issues semelhantes
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 84/100
eliasstravik/herdr-projects#1700 ·
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 78/100
Mantenedores costumam responder em até 1 dia
-
[SNZB-02DR2 / SONOFF] ???Aberta
Dificuldade 1/5 Menos de uma hora Facilidade para iniciantes 75/100
Koenkk/zigbee2mqtt#33890 ·
Mantenedores costumam responder em até 1 dia
-
[bug] Socrates launchd-path adapter throws EISDIR when an import names a folder beside its .ts fileAberta
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 85/100
danielmiessler/LifeOS#3123 ·
Mantenedores costumam responder em até 5 dias
-
[Feature]: Skill Workshop skill diet should use the configured utility model, not always the primaryAbertaclawsweeper:fix-shape-clear clawsweeper:needs-live-repro clawsweeper:needs-maintainer-review clawsweeper:needs-product-decision clawsweeper:no-new-fix-pr impact:auth-provider issue-rating: 🐚 platinum hermit P2
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 84/100
openclaw/openclaw#210348 · 1 comentário · 1 reação ·
Mantenedores costumam responder em até 1 dia