fix(gitea-runner): status token fallback and env-prefix policy#917
Closed
AlexMikhalev wants to merge 7 commits into
Closed
fix(gitea-runner): status token fallback and env-prefix policy#917AlexMikhalev wants to merge 7 commits into
AlexMikhalev wants to merge 7 commits into
Conversation
added 7 commits
June 13, 2026 10:53
…2596 Step 0 architecture claims verified. Action 1 implemented on terraphim-agents task/2596-adf-issue-dedup (PR #43). Actions 2/4 pending bigbox SSH; Action 3 applied to 7 repos; Action 5 blocked by open issue dependencies on first close attempt.
Prefer RUNNER_STATUS_TOKEN/GITEA_TOKEN for native commit-status posts when the per-job github.token returns HTTP 401 on private repos. Strip leading shell VAR=value assignments (including $(subshell) forms) before allowlist checks so inlined workflow env does not reject cargo/rustup steps. Refs #2464
Contributor
Author
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Fixes two native runner infra issues blocking green
native-ci / build (push)on private repos:github.tokencan checkout but lacks/statusesscope. Runner now prefersRUNNER_STATUS_TOKEN/GITEA_TOKENfor native commit-status posts (job token remains fallback).RUSTDOC=$(rustup— Gitea inlines stepenv:intorun:commands. Policy now strips leading shell assignments (including$(subshell)forms) before allowlist checks.Deploy
Already deployed on bigbox: binary rebuilt from this branch,
RUNNER_STATUS_TOKENadded to all three runner env files, services restarted.Test plan
cargo test -p terraphim_gitea_runner(33 tests)workflow_dispatchon terraphim-agents — verify no 401 / policy reject in runner logsRefs terraphim/terraphim-ai#2464 (Gitea)