[PR #595] [MERGED] ci: persist-credentials: false on the 9 checkout steps that lacked it (CI-SECURITY-CREDENTIALS) #637

Closed
opened 2026-11-26 20:18:33 +01:00 by 4ld0 · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ubiquitarianism/leonida/pull/595
Author: @TuroYT
Created: 11/24/2026
Status: ✅ Merged
Merged: 11/25/2026
Merged by: @aslan2142

Base: main ← Head: ci/persist-credentials-false


📝 Commits (1)

  • 1c850c0 ci: persist-credentials: false on the 9 checkout steps that lacked it

📊 Changes

3 files changed (+17 additions, -0 deletions)

View changed files

📝 .github/workflows/ci.yml (+9 -0)
📝 .github/workflows/runtime.yml (+6 -0)
📝 .github/workflows/xma2-decoder.yml (+2 -0)

📄 Description

Claimed in the coordination issue as: CI-SECURITY-CREDENTIALS (https://github.com/ubiquitarianism/leonida/issues/14#issuecomment-7127480355), from NinsonD's finding in the same issue.

ci.yml (5 steps), runtime.yml (3) and xma2-decoder.yml (1) left the GITHUB_TOKEN in .git/config for the rest of the job. The other 8 checkout steps in .github/workflows/ already set persist-credentials: false; after this change all 17 do.

No step in those jobs runs an authenticated git command, so the token was never needed there. The only git calls are make_game.py's git submodule update and the FetchContent downloads, both over public URLs. The one job with submodules: recursive (ci.yml, line 66) is the case to watch: the checkout action fetches submodules before it drops the credentials, so it should still work.

Tested:

  • Every actions/checkout step in all workflow files parses with PyYAML and has with.persist-credentials: false (17 of 17).
  • git diff --check is clean; line endings and the final newline are unchanged.
  • python -I tests/test_ci_registration.py, test_no_game_data_workflow.py, test_pr_conflict_label.py and test_runtime_paths.py pass (Python 3.14.10).
  • python -I scripts/check_no_game_data.py on the three files: exit 0.

Not tested: the workflows themselves, since I have no way to run GitHub Actions here and actionlint is not installed. The CI run on this PR is the real check, especially the submodule job. No game files and no GPU needed.

AI-assisted (Claude Code).


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/ubiquitarianism/leonida/pull/595 **Author:** [@TuroYT](https://github.com/TuroYT) **Created:** 11/24/2026 **Status:** ✅ Merged **Merged:** 11/25/2026 **Merged by:** [@aslan2142](https://github.com/aslan2142) **Base:** `main` ← **Head:** `ci/persist-credentials-false` --- ### 📝 Commits (1) - [`1c850c0`](https://github.com/ubiquitarianism/leonida/commit/1c850c02bcc59ae1a1c9979acbebd570e5d02898) ci: persist-credentials: false on the 9 checkout steps that lacked it ### 📊 Changes **3 files changed** (+17 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `.github/workflows/ci.yml` (+9 -0) 📝 `.github/workflows/runtime.yml` (+6 -0) 📝 `.github/workflows/xma2-decoder.yml` (+2 -0) </details> ### 📄 Description Claimed in the coordination issue as: CI-SECURITY-CREDENTIALS (https://github.com/ubiquitarianism/leonida/issues/14#issuecomment-7127480355), from NinsonD's finding in the same issue. `ci.yml` (5 steps), `runtime.yml` (3) and `xma2-decoder.yml` (1) left the `GITHUB_TOKEN` in `.git/config` for the rest of the job. The other 8 checkout steps in `.github/workflows/` already set `persist-credentials: false`; after this change all 17 do. No step in those jobs runs an authenticated git command, so the token was never needed there. The only git calls are `make_game.py`'s `git submodule update` and the `FetchContent` downloads, both over public URLs. The one job with `submodules: recursive` (`ci.yml`, line 66) is the case to watch: the checkout action fetches submodules before it drops the credentials, so it should still work. Tested: - Every `actions/checkout` step in all workflow files parses with PyYAML and has `with.persist-credentials: false` (17 of 17). - `git diff --check` is clean; line endings and the final newline are unchanged. - `python -I tests/test_ci_registration.py`, `test_no_game_data_workflow.py`, `test_pr_conflict_label.py` and `test_runtime_paths.py` pass (Python 3.14.10). - `python -I scripts/check_no_game_data.py` on the three files: exit 0. Not tested: the workflows themselves, since I have no way to run GitHub Actions here and `actionlint` is not installed. The CI run on this PR is the real check, especially the submodule job. No game files and no GPU needed. AI-assisted (Claude Code). --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
4ld0 2026-11-26 20:18:33 +01:00
Sign in to join this conversation.
No labels
bug
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
starred/leonida#637
No description provided.