Test CI is failing for external contributors
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 35/100
Direzione di ricerca
Start by reading the existing test CI workflow and the linked GitHub Security Lab article, then inspect how external pull requests handle secrets and the coverage.xml artifact. Confirm the two-workflow approach in a test external-contributor scenario. Done means test CI remains safe and coverage.xml is published successfully for external contributors.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Currently, test CI is using the pull_request trigger. However, with this trigger the secrets are not populated when the PR author is external to the repository.
This is done on purpose for security reasons: https://securitylab.github.com/resources/github-actions-preventing-pwn-requests/
Many persons on the internet suggest to use pull_request_target, but according to a rapid oversight of github securitylab article, this is only a workaround with does not help with security at all.
The proper solution seems to separate the workflow in two:
- existing workflow will only publish the coverage.xml as an artifact
- a new workflow will be responsible to publish this coverage.xml
Seems pretty simple to implement, but to be confirmed (I skimmed through github article way too fast) and tested of course.
- Lingua principale
- Python
- Stelle
- 1
- Fork
- 4
- Merge medio
- 22h 26m
- PR unite (30g)
- 2
Preparare l'ambiente
- Include un Dockerfile o un file Docker Compose
- Nessun modello di pull request
- Nessuna guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di openzim/_python-bootstrap
-
Difficoltà 3/5 Mezza giornata Idoneità per principianti 50/100
openzim/_python-bootstrap#58 ·
-
Adapt bootstrap / conventions to use `pylock.toml`Forse di nuovo libera @rgaudin l’ha presa 505 giorni fa e non c’è nessuna pull request aperta. Apertaenhancement
openzim/_python-bootstrap#54 · 1 commento · 2 assegnatari ·
-
Workflow conventionForse di nuovo libera @benoit74 l’ha presa 519 giorni fa e non c’è nessuna pull request aperta. Apertaquestion
openzim/_python-bootstrap#53 · 1 assegnatario ·
-
enhancement
Difficoltà 3/5 1-2 giorni Idoneità per principianti 25/100
openzim/_python-bootstrap#51 · 3 commenti ·
-
What about nested logsForse di nuovo libera @rgaudin l’ha presa 793 giorni fa e non c’è nessuna pull request aperta. Apertaenhancement
openzim/_python-bootstrap#48 · 2 assegnatari ·
Tutte le issue di openzim/_python-bootstrap
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
521xueweihan/HelloGitHub#4729 ·
-
auto-reported bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
I maintainer di solito rispondono entro 1 giorno
-
cliproxy-quota: a tab around a credential email skips own-accounts and paced-accounts matchingApertaneeds-triage type:bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 90/100
pollen-robotics/reachy_mini_conversation_app#631 ·
I maintainer di solito rispondono entro 7 giorni
-
stix-atlas.json: the same relationship id is used for several different mitigates relationshipsAperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100