Skip to content

feat(harden-runner): harden GitHub Actions jobs#271

Merged
DevSecNinja merged 4 commits into
mainfrom
copilot/feat-harden-runner-implement-test
May 3, 2026
Merged

feat(harden-runner): harden GitHub Actions jobs#271
DevSecNinja merged 4 commits into
mainfrom
copilot/feat-harden-runner-implement-test

Conversation

Copilot AI commented May 2, 2026

Copy link
Copy Markdown
Contributor

Adds the shared DevSecNinja/.github Harden-Runner composite action to this repository’s GitHub Actions workflows. The rollout uses audit mode via the wrapper defaults so jobs can observe runtime egress before any blocking policy is introduced.

  • Workflow hardening
    • Adds Harden-Runner to eligible Linux jobs across CI, docs, release, devcontainer, Bats, sync, and automation workflows.
    • Places Harden-Runner before checkout where applicable so it observes checkout and all subsequent job steps.
    • Pins the central composite action by full SHA and includes Renovate metadata.
- name: Harden runner
  # renovate: datasource=github-tags depName=DevSecNinja/.github
  uses: DevSecNinja/.github/actions/harden-runner@bf22fcfcb4ef94a359eed55cea4b5ce7f5b98167 # main
  • Regression coverage
    • Adds Bats coverage to enforce:
      • central wrapper usage, not direct step-security/harden-runner calls
      • full-SHA pinning
      • Renovate metadata
      • expected workflow coverage
      • Harden-Runner ordering before checkout in hardened jobs

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • dl.google.com
    • Triggering command: /usr/lib/apt/methods/https /usr/lib/apt/methods/https 501 6 1 sh 0HyL/test -T p/bin/bash -x -T /home/REDACTED/work/dotfiles/dotfi--dummy-flag bash s-ex�� --dummy-flag -T n-failure -x -T les/tests/bash/t/tmp/bats-run-PY0HyL/test gic-3a_zsh_config_contains_VS_Co/tmp/tmp.tQ5XUhm3Ie/log.sh.sha256 (dns block)
  • mise.run
    • Triggering command: /usr/bin/curl curl -fsSL REDACTED (dns block)

If you need me to access, download, or install something from one of these locations, you can either:

Copilot AI linked an issue May 2, 2026 that may be closed by this pull request
Copilot AI and others added 2 commits May 2, 2026 22:06
Agent-Logs-Url: https://github.com/DevSecNinja/dotfiles/sessions/0b37fe9b-3e8f-4080-ab28-4a130167e648

Co-authored-by: DevSecNinja <14926452+DevSecNinja@users.noreply.github.com>
Agent-Logs-Url: https://github.com/DevSecNinja/dotfiles/sessions/0b37fe9b-3e8f-4080-ab28-4a130167e648

Co-authored-by: DevSecNinja <14926452+DevSecNinja@users.noreply.github.com>
Copilot AI changed the title [WIP] Implement and test harden runner functionality feat(harden-runner): harden GitHub Actions jobs May 2, 2026
Copilot AI requested a review from DevSecNinja May 2, 2026 22:12
@DevSecNinja DevSecNinja marked this pull request as ready for review May 2, 2026 22:15
@DevSecNinja DevSecNinja merged commit 5506be1 into main May 3, 2026
19 checks passed
@DevSecNinja DevSecNinja deleted the copilot/feat-harden-runner-implement-test branch May 3, 2026 06:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat(harden-runner): implement and test

2 participants