Repository navigation
DOTFI-24: Run CI on the self-hosted runner - #36
Merged
Merged
Conversation
Fork PRs and the macOS leg stay on GitHub-hosted runners, as does the bootstrap job, which needs a pristine Ubuntu machine. The gitleaks step copies the checkout into the scan container instead of bind-mounting it, because the runner is itself a container and $PWD is not a host path. Refs DOTFI-24
Select the self-hosted runner only for non-PR events and for same-repo, non-Dependabot pull requests, so a missing head repo or any cross-repo PR falls back to GitHub-hosted runners. Let the gitleaks step return the scan container's exit code directly instead of masking it. Refs DOTFI-24
github.actor is whoever triggered the run, so a maintainer re-running a Dependabot PR would have moved it onto the self-hosted runner. Use the PR author and the head branch prefix instead. Refs DOTFI-24
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.
YouTrack: https://youtrack.xn--wrm-hoa.li/issue/DOTFI-24
Run the Linux leg of
lint-testand thesecretsjob on the self-hosted runnerdev-worker-tp. The macOS leg andbootstrapstay on GitHub-hosted runners.self-hosted, Linux, X64, docker) only for non-PR events and for same-repo, non-Dependabot pull requests; everything else falls back toubuntu-latest.sudowhen running as root (the runner image has nosudo).docker create+docker cp) instead of bind-mounting$PWD, since the runner is itself a container and$PWDis not a host path.Commits:
Test plan
make lintandmake testpass locally.actionlintwas not available).lint + test (ubuntu-latest)andsecret scanran ondev-worker-tpand passed, and thatlint + test (macos-latest)andbootstrapran on GitHub-hosted runners.docker start -a).Review: skipped (not independently reviewed)