Repository navigation
[StepSecurity] Apply security best practices - #7
Merged
Merged
Conversation
stepsecurity-app
Bot
requested review from
Copilot
and removed request for
Copilot
April 12, 2026 18:27
devantler
approved these changes
Apr 12, 2026
Contributor
There was a problem hiding this comment.
Pull request overview
Applies GitHub Actions security hardening across CI and scheduled reporting workflows by introducing hardened runner auditing, least-privilege default token permissions, and pinning/replacing selected third-party actions.
Changes:
- Add
permissions: contents: readat the workflow level to enforce least-privilege defaults. - Add StepSecurity Harden Runner in CI and report workflows with
egress-policy: audit. - Pin
actions/create-github-app-tokento a commit SHA and replacepeter-evans/create-issue-from-file/stefanzweifel/git-auto-commit-actionwith StepSecurity-maintained equivalents.
Reviewed changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| .github/workflows/report-repos-with-no-team.yml | Adds hardened-runner, workflow-level token permissions, pins app-token action, and swaps issue upload action to StepSecurity-maintained version. |
| .github/workflows/report-repos-with-no-admin-team.yml | Same security hardening/pinning and StepSecurity action replacement for this report workflow. |
| .github/workflows/report-repos-with-multi-admin-teams.yml | Same security hardening/pinning and StepSecurity action replacement for this report workflow. |
| .github/workflows/ci.yml | Adds workflow-level token permissions, hardened-runner, and swaps auto-commit action to StepSecurity-maintained version. |
Contributor
There was a problem hiding this comment.
Pull request overview
Applies GitHub Actions security hardening recommended by StepSecurity across the repository’s CI and scheduled governance report workflows to reduce token exposure and improve supply-chain defenses.
Changes:
- Adds workflow-level least-privilege
GITHUB_TOKENpermissions (contents: read) to the affected workflows. - Adds StepSecurity’s
harden-runnerstep (egress audit mode) to CI and scheduled report workflows. - Pins
actions/create-github-app-tokento a specific commit SHA and replaces select third-party actions with StepSecurity-maintained equivalents.
Reviewed changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| .github/workflows/report-repos-with-no-team.yml | Adds minimal workflow permissions, hardens runner, pins token action, switches issue uploader action to StepSecurity-maintained variant. |
| .github/workflows/report-repos-with-no-admin-team.yml | Same security hardening pattern as other report workflows (permissions + harden-runner + pinned action + StepSecurity replacement). |
| .github/workflows/report-repos-with-multi-admin-teams.yml | Same security hardening pattern as other report workflows (permissions + harden-runner + pinned action + StepSecurity replacement). |
| .github/workflows/ci.yml | Adds workflow permissions, hardens runner in both jobs, pins GitHub App token action, and switches auto-commit action to StepSecurity-maintained variant. |
Signed-off-by: StepSecurity Bot <bot@stepsecurity.io>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com> Signed-off-by: Nikolai Emil Damm <ned@devantler.tech>
devantler
force-pushed
the
chore/GHA-121826-stepsecurity-remediation
branch
from
April 12, 2026 18:48
2dd9762 to
765655e
Compare
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
This pull request has been generated by StepSecurity as part of your enterprise subscription to ensure compliance with recommended security best practices. Please review and merge the pull request to apply these security enhancements.
Security Fixes
Harden Runner
Harden-Runner is an open-source security agent for the GitHub-hosted runner to prevent software supply chain attacks. It prevents exfiltration of credentials, detects tampering of source code during build, and enables running jobs without sudo access.
Least Privileged GitHub Actions Token Permissions
The GITHUB_TOKEN is an automatically generated secret to make authenticated calls to the GitHub API. GitHub recommends setting minimum token permissions for the GITHUB_TOKEN.
Pinned Dependencies
Pinning GitHub Actions to specific versions or commit SHAs ensures that your workflows remain consistent and secure.
Unpinned actions can lead to unexpected changes or vulnerabilities caused by upstream updates.
StepSecurity Maintained Actions
Risky GitHub Actions can expose your project to potential security risks. Risky actions have been replaced with StepSecurity maintained actions, that are secure drop-in replacements.
Feedback
For bug reports, feature requests, and general feedback; please create an issue in step-security/secure-repo or contact us via our website.