CI: do not persist the checkout token, and test the minimum supported Node
Dieses Issue hat noch niemand übernommen.
Bewertung
- Schwierigkeit
- 2/5
- Geschätzter Aufwand
- 1-3 Stunden
- Anfängerfreundlichkeit
- 68/100
- Issue-Typ
- Refactoring
- Klarheit
- Größtenteils klar
- Aktivitätsstatus
- Aktiv
- Tech-Stack
- git, github-actions, nodejs
- Bereich
- build-system, ci-cd
Rechercherichtung
Beginne mit .github/workflows/ci.yml und .github/workflows/deploy.yml, wo beide actions/checkout-Schritte persist-credentials: false benötigen. Vergleiche für den Node-Punkt package.json engines, .nvmrc und .github/dependabot.yml, und entscheide dann mit einem Maintainer, ob ein Node-22-Matrix-Eintrag hinzugefügt oder engines auf 24 angehoben wird. Fertig, wenn beide Workflows mit der Checkout-Änderung laufen und CI die Version testet, die engines deklariert.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
Summary
Two small gaps in the GitHub Actions workflows: the checkout step leaves the job token in the local git config while dependency scripts run, and CI only tests Node 24 although the project says it supports Node 22.12 and later.
Checklist
- Do not persist the checkout token.
.github/workflows/ci.yml:18and.github/workflows/deploy.yml:24useactions/checkoutwithoutpersist-credentials: false, so the job'sGITHUB_TOKENstays in.git/configwhilenpm ci, lint, tests and the build run code fromnode_modules. The token is already least-privilege (contents: read, pluspages: readin the deploy build job), and nothing later in either job uses git with it, so addwith: { persist-credentials: false }to both checkout steps. This is defence in depth: it matters if job permissions are widened later. - Test the oldest supported Node.
package.json:7-9declares"node": ">=22.12"and Dependabot pins@types/nodeto the oldest supported major (.github/dependabot.yml:15-17), but.nvmrcand both workflows use Node 24 only (ci.yml:21). Either add a Node 22 leg toci.yml, or raiseenginesto>=24and move@types/nodeto 24.
Acceptance criteria
- Both checkout steps set
persist-credentials: false, and both workflows still pass. - CI runs the declared minimum Node version, or
enginesmatches what CI tests.
Getting started
- Relevant files:
.github/workflows/ci.yml,.github/workflows/deploy.yml,package.json,.nvmrc,.github/dependabot.yml - Related: #20, #23
Filed by repo-audit/full-audit at de2b25b. Severity: low. Effort: S. audit-key: ci|.github/workflows/ci.yml|actions/checkout persist-credentials
- Vorherrschende Sprache
- TypeScript
- Sterne
- 3
- Forks
- 3
- Ø Merge
- 8 Std. 13 Min.
- Gemergte PRs (30 T.)
- 2
Entwicklungsumgebung
Dieses Projekt bietet weder Dev-Container noch Dockerfile noch Beitragsleitfaden – die Einrichtung liegt bei Ihnen. Beginnen Sie mit der README; die allgemeinen Schritte stehen in unserem Leitfaden für den ersten Beitrag.
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus TMHSDigital/GH-Arcade
-
bug good first issue severity: low
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 88/100
TMHSDigital/GH-Arcade#105 ·
-
bug good first issue severity: low
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 72/100
TMHSDigital/GH-Arcade#104 ·
-
bug good first issue severity: medium
Schwierigkeit 2/5 Unter einer Stunde Anfängerfreundlichkeit 84/100
TMHSDigital/GH-Arcade#88 ·
-
accessibility enhancement severity: low
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 40/100
TMHSDigital/GH-Arcade#114 ·
-
enhancement severity: low
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 35/100
TMHSDigital/GH-Arcade#113 ·
Alle Issues in TMHSDigital/GH-Arcade
Ähnliche Issues
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 82/100
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 78/100
steelbrain/node-ssh#487 ·
-
cli: `execCargoMetadata` decodes stdout per chunk, corrupting non-ASCII paths across pipe boundariesOffen
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 68/100
Maintainer antworten meist innerhalb von 1 Tag
-
community first-timers-only good first issue hacktoberfest help wanted low hanging fruit up-for-grabs
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 62/100
lingdojo/kana-dojo#34127 · 1 Kommentar · 5 Reaktionen ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 68/100
osmlab/name-suggestion-index#13104 ·
Maintainer antworten meist innerhalb von 1 Tag