Overview
After you install the StepSecurity Actions Security GitHub App in your GitHub Account and access your dashboard, you should see the Overview dashboard.
On this page, you can see all the controls enabled by StepSecurity:

All Controls
This check fails if an organization or public repository only requires approval for first-time contributors who are new to GitHub, so any established GitHub account can run fork pull request workflows without approval
Set the fork pull request approval policy to Require approval for all external contributors
This check ensures that Harden-Runner is in your workflow to protect GitHub-hosted runners from unauthorized access, exfiltration, and tampering
This check ensures that the necessary monitoring measures are in place to protect self-hosted runners against unauthorized access and tampering
Deploy Harden-Runner on self-hosted runners
This check prevents untrusted input from executing as code, reducing script injection risks in workflows
Enable GitHub Checks and apply workflow-level fixes
This check ensures workflows triggered by unsafe events (e.g., pull_request_target) don't run untrusted code from forks without safeguards
Enable GitHub Checks and apply workflow-level fixes
This check ensures GitHub Actions use full commit SHAs instead of branches or tags.
This check ensures PRs do not introduce confirmed compromised npm packages into the repository
Update or remove compromised packages and rotate secrets if exposed
This check passes if the package manager's effective registry on the developer machine is a private registry, not a public registry such as registry.npmjs.org or pypi.org
Configure npm, pip, and other package managers on developer machines to use a secure registry
This check passes if the job's network baseline contains no calls to public package registries such as registry.npmjs.org, pypi.org, or registry-1.docker.io
Configure the job's package managers to use a secure registry
This check ensures the repository's default branch has branch protection rules enabled, including required pull request reviews, blocked force pushes, and admin enforcement
Enable branch protection on the default branch in GitHub
This check ensures workflows use least privilege token permissions, minimizing excessive access risks
This check ensures each GitHub Action used in the job has a security score of 6 or above to minimize security risks
Use StepSecurity Actions
This check ensures deployment actions use OIDC authentication instead of long-term secrets
Remove long-term secrets from your repository and migrate to OIDC-based authentication
This check ensures publishing secrets are stored as environment secrets for controlled access
Move publishing credentials to environment secrets
This check ensures all Organization, Repository, and Environment secrets have been rotated within the last 180 days
Rotate secrets at least every 180 days to maintain security
This check ensures no secrets are present in build artifacts uploaded by workflows
Mask or redact secrets from build artifacts before upload
This check ensures no secrets are present in the build log
Mask sensitive outputs
This check fails for an active classic personal access token carrying a coarse scope such as repo, admin:org, or workflow, or a fine-grained token combining all-repository access with a write-level permission
Replace classic tokens with fine-grained tokens scoped to specific repositories and permissions
This check fails for an active personal access token older than the configured maximum age for its class (fine-grained and classic tokens have separate limits)
Rotate the token: create a replacement, update the automation that uses it, and revoke the old one
This check fails for an active personal access token created with no expiration, or whose expiration lies further out than the configured maximum age allows
Re-create the token with an expiration within the allowed lifetime and revoke the non-expiring one
This check fails for an active personal access token that shows no use for longer than the configured idle window
Confirm the token is no longer needed, then revoke it from the Apps & PATs page
StepSecurity provides these controls as specific checks on your GitHub organization workflows, ensuring compliance with industry-standard security practices.
Managing Findings
Each control surfaces findings across your repositories and workflows. From the control detail page, you can review findings, track remediation progress, and suppress findings that don't apply to your environment.

The detail page for each control organizes findings into four tabs:
Findings — Active findings that require attention.
In Progress — Findings with remediation work underway (for example, an automated pull request that has been opened but not yet merged).
Fixes — Findings that have been resolved.
Suppressed — Findings you've chosen to exclude from active tracking.
Suppressing findings
Suppression is useful when a finding is a known false positive, an accepted risk, or otherwise not applicable to your environment. To suppress a finding:
Open the control detail page from the All Controls table.
Locate the finding in the Findings tab.
Click the action menu on the finding row and select the suppress option.
Suppressed findings move to the Suppressed tab and no longer count against the control's compliance status. You can unsuppress a finding at any time to return it to active tracking.

Fork pull request workflows should require approval
This check ensures that GitHub organizations and public repositories require approval before workflows run on pull requests from forks. It fails when the approval policy is set to Require approval for first-time contributors who are new to GitHub, the least restrictive option GitHub offers.
The Scope column in the findings table shows which level each finding applies to:
Org: the organization's default approval policy.
Repo: the effective policy of a public repository. A repository uses the organization's policy unless it sets its own, and its own policy can be stricter or weaker than the organization's.
Private repositories are excluded, because GitHub governs fork workflows in private repositories with a separate set of policies. When StepSecurity cannot read the policy for an organization or repository, the finding is reported as not assessed, so an unreadable setting never counts as a pass.
StepSecurity evaluates this control every hour. The Scanned on and Next Scan columns show when each finding was last checked and when it will be checked again.
Why This Matters
Under the least restrictive policy, approval is required only for accounts that are new to GitHub and have never had a commit or pull request merged into the repository. Any established GitHub account can fork a public repository, edit a workflow file, and open a pull request, and the modified workflow starts running right away. On a self-hosted runner, that code runs inside your infrastructure, where it can steal credentials or reach internal systems.
Code review comes too late to stop this: the workflows run as soon as the pull request is opened.
How to Fix It
Change the approval policy to a stricter option. The Open Settings link on each finding takes you to the organization or repository settings in GitHub.
Go to Settings > Actions > General for the organization or repository named in the finding.
Under Approval for running fork pull request workflows from contributors, select Require approval for all external contributors.
Click Save.
Changing the policy at the organization level fixes every public repository that uses the organization's policy. Repositories that set their own least restrictive policy must be updated one by one. The finding passes on the next hourly scan after the setting changes.
For more on this setting, see GitHub's documentation for organizations and repositories.
Network and runtime security monitoring should be enabled for GitHub-hosted runners
This check ensures that the step-security/harden-runner GitHub Action is included in your workflow for GitHub-hosted runners to prevent unauthorized access, exfiltration, and tampering.
Why This Matters
Without security monitoring, attackers can exploit CI/CD workflows to leak sensitive code or credentials. Harden-Runner helps detect and prevent these threats by monitoring network activity and restricting unexpected behaviors.
How to Fix It
Fix this issue with an automated pull request that adds the step-security/harden-runner GitHub Action to the job using Secure Workflow or Secure Repo
Network and runtime security should be enabled for self-hosted runners
This check ensures that the necessary monitoring measures are in place to protect self-hosted runners against unauthorized access and tampering
Why This Matters
Without security monitoring, attackers can exploit self-hosted runners to exfiltrate code or steal CI/CD credentials. Harden-Runner helps mitigate these risks by monitoring network activity and detecting suspicious file modifications.
How to Fix It
Deploy Harden-Runner on self-hosted runners by following the instructions in the Self-Hosted Runner Settings
Prevent execution of untrusted code from context variables (Script Injection Vulnerability)
This check ensures context variables in workflows are not used in a way that allows untrusted input to be executed as code, preventing script injection vulnerabilities.
Why This Matters
If workflow context variables (e.g., ${{ github.event.issue.title }}) are not properly handled, attackers can inject malicious scripts into workflows. This can lead to arbitrary command execution, data exfiltration, or unauthorized access to repository secrets.
How to Fix It
Enable continuous scanning with GitHub Checks
The most reliable way to catch script injection vulnerabilities is to enable GitHub Checks, which scans your workflow files for script injection patterns on every pull request. The check flags overly permissive triggers and unsanitized external inputs as a failing or blocking check, so issues are surfaced before they're merged.
In addition to enabling GitHub Checks, apply these workflow-level fixes:
Avoid inline scripts
Wherever possible, use tried and tested GitHub Actions instead of inline scripts. Please note that a GitHub Action itself can be vulnerable to script injection attacks, so you must review the Action before using it.
Intermediate Environment Variable
If you must use inline scripts, consider using intermediate environment variables to access user controller attributes. Here is an example:
Prevent execution of untrusted code from forks (Pwn Request Vulnerability)
This check ensures that workflows triggered by potentially unsafe events, such as pull_request_target, do not execute untrusted code from forked repositories without proper safeguards.
Why This Matters
Using risky triggers like pull_request_target without explicitly defining a reference (ref) when checking out code can expose secrets and lead to repository compromises. Attackers can manipulate pull requests to run unauthorized code with elevated permissions.
How to Fix It
Enable continuous scanning with GitHub Checks
The most reliable way to catch pwn request vulnerabilities is to enable GitHub Checks, which inspects your workflow files for insecure configurations such as pull_request_target triggers that can be exploited by malicious forked PRs. The check flags these risks on every pull request before they can be merged.
In addition to enabling GitHub Checks, apply one or more of these workflow-level fixes:
Use a safer trigger: Prefer
pull_requestoverpull_request_targetwhere possible.Restrict code checkout: If you must use
pull_request_target, ensure that the code is only checked out from a trusted branch by specifying an explicit ref:
Limit workflow permissions to minimize access to secrets and other sensitive data.
Actions should be pinned to a full-length commit SHA
This check ensures each GitHub Action used in the job is referenced using a full-length commit SHA instead of a branch name or version tag.
Workflows locked by a GitHub Actions lockfile: a workflow listed in .github/workflows/actions.lock passes this control, because GitHub runs the commits recorded in the lockfile. The check shows the reason “Actions are locked to reviewed commits by .github/workflows/actions.lock”. Reusable workflows called from a locked workflow are evaluated against the lockfile of the repository that defines them.
Why This Matters
Referencing GitHub Actions by branch name (e.g., main) or version tags (e.g., v1.0.0) introduces security risks. The action's code could change unexpectedly, potentially introducing vulnerabilities. Pinning actions to a full-length commit SHA ensures that only the expected, reviewed code is executed, reducing the risk of supply chain attacks.
How to Fix it
Pin Actions to a full-length commit SHA or onboard the workflow to a GitHub Actions lockfile.
Fix this automatically with a policy-driven PR, which pins actions to commit SHAs. To exclude specific actions, see Exempted Actions from Pinning Control.
Compromised npm packages found in PR
This check ensures that pull requests (PRs) do not introduce known compromised npm packages into the codebase.
Why This Matters
Introducing compromised npm packages into a repository can result in severe security issues, including:
Unauthorized code execution during CI/CD runs,
Exfiltration of secrets via malicious package behavior,
Complete takeover of repository environments, especially if secrets or deployment keys are exposed during the workflow.
How to Fix it
Update the compromised package(s) to a safe version, preferably the latest secure release.
Replace or remove the package if it is no longer actively maintained or cannot be safely updated.
Rotate your secrets if a known-compromised package was already used in prior workflow runs.
Developer machines should use a secure registry instead of public package registries
This check passes if the package manager's effective registry on the developer machine is a private registry, not a public registry such as registry.npmjs.org or pypi.org.
This control is tenant-wide: it covers every registered developer machine in your tenant, across all organizations. It requires the Dev Machine Guard agent to be installed on the machine.
Why This Matters
Developer machines that install packages directly from public registries are exposed to malicious or compromised packages before code ever reaches CI/CD. A malicious version published to a public registry can land on a laptop the moment it goes live, ahead of any pull request, build, or CI policy check. Routing installs through a secure registry puts a controlled intermediary in front of the public registry, so packages are validated against policy before they reach the machine.
The check evaluates package-manager configuration on the device, so it reports what a machine is configured to resolve from rather than a record of packages it has already downloaded.
How to Fix It
Configure the package managers on each developer machine to resolve packages through a secure registry (for example, StepSecurity Secure Registry, JFrog Artifactory, AWS CodeArtifact, or Sonatype Nexus Repository) instead of the public registry, and deploy that configuration through managed config files (.npmrc, pip.conf) so it applies consistently across machines.
To route npm through StepSecurity Secure Registry, follow the Setup Guide. Use the Direct npm (
.npmrc) integration path for machines without an artifact manager, or the JFrog Artifactory, Google Artifact Registry, or Sonatype Nexus paths if you already proxy npm through one of those.Use Package Configs to verify the change landed. The Effective registry column shows the registry each device resolves from and the scope the value was set in.
Once a device's effective registry is private for a given package manager, that device and tool pair passes on the next scan.
Jobs should use a secure registry instead of public package registries
This check passes if the job's network baseline contains no calls to public package registries such as registry.npmjs.org, pypi.org, or registry-1.docker.io.
Why This Matters
Routing package downloads through a secure registry protects CI/CD jobs from malicious or compromised packages published to public registries. When jobs pull dependencies directly from public registries, a newly published malicious version can reach your build the moment it goes live. A secure registry acts as a controlled intermediary, so packages are vetted before they reach your workflows.
How to Fix It
Configure the job's package managers to use a secure registry (e.g., StepSecurity Secure Registry, JFrog Artifactory, Sonatype Nexus) instead of the public registry.
To use StepSecurity Secure Registry, follow the Setup Guide.
Once package downloads are routed through the secure registry, the job's network baseline will no longer contain calls to public registries and the check will pass.
Default branch should be protected
This check ensures the repository's default branch has branch protection rules enabled, including required pull request reviews, blocked force pushes, and admin enforcement.
Why This Matters
Branch protection prevents unauthorized or unreviewed changes from landing on the branch that ships. Without it, anyone with write access can push directly to the default branch, force-push over history, or merge code without review. Each of these gaps gives an attacker or a compromised contributor a straight path to inject malicious or unsafe code into production.
Required pull request reviews ensure at least one other person sees every change. Blocking force pushes preserves the audit trail and prevents history rewrites that hide malicious commits. Admin enforcement closes the most common escape hatch, which is admins bypassing the rules they set for everyone else.
How to Fix It
Enable branch protection on the default branch in GitHub:
Require at least 1 approving pull request review before merging
Block force pushes
Enforce the rules for administrators (do not allow admins to bypass protections)
You can configure these settings under Settings > Branches > Branch protection rules in each repository, or apply them at scale using GitHub rulesets at the organization level.
GITHUB_TOKEN should have minimum permissions
This check ensures that GitHub workflows use the least required token permissions at the job or workflow level, reducing the risk of excessive access.
Why This Matters
By default, GitHub tokens may have broad permissions, increasing the attack surface. If a workflow grants unnecessary privileges, a compromised workflow run could lead to unauthorized actions, such as modifying repository settings or leaking sensitive data.
How to Fix it
Set minimum GitHub token permissions at the job or workflow level.
Fix this issue with an automated pull request that adds the step-security/harden-runner GitHub Action to the job using Secure Workflow or Secure Repo
Third-party GitHub Actions with high scores should be used
This check ensures each GitHub Action used in the job has a security score of 6 or above to minimize security risks.
Why This Matters
Using third-party GitHub Actions with low-security scores increases the risk of vulnerabilities, including supply chain attacks. Actions with higher security scores are more likely to follow best practices, reducing the chance of exploitation.
How to Fix it
Use StepSecurity Actions instead of third-party Actions with a low score.
If you have reviewed a low-scoring Action and accept the risk, add it to Low Score Exemptions so this control no longer flags it.
If there are no StepSecurity Maintained Actions, then you can request a maintained Action
OIDC should be used when deploying to the cloud
This check ensures deployment GitHub Actions that support OpenID Connect (OIDC) are configured to use OIDC authentication instead of long-term secrets.
Why This Matters
Using long-term secrets in workflows increases security risks, as secrets can be leaked, misused, or rotated improperly. OIDC provides a more secure and automated way to authenticate deployments, eliminating the need to store and manage credentials manually.
How to Fix it
Enable OIDC authentication for your deployment Actions instead of using static secrets.
Update workflows to use federated credentials, which allow short-lived tokens to be issued dynamically.
Remove long-term secrets from your repository and migrate to OIDC-based authentication for enhanced security.
Publishing secrets should be set as environment secrets
This check ensures publishing secrets are stored as environment secrets rather than repository or organization secrets, ensuring they are only accessible under controlled conditions.
Why This Matters
Storing publishing secrets as environment secrets restricts their access to workflows running in protected branches or requiring manual approval. This prevents unauthorized use of sensitive credentials, reducing the risk of accidental exposure or misuse.
How to Fix It
Move publishing credentials to environment secrets instead of using repository or organization secrets.
Configure deployment protection rules to enforce manual approvals or restrict deployments to protected branches.
Secrets should be rotated periodically
This check ensures all Organization, Repository, and Environment secrets have been rotated within the last 180 days to minimize security risks. Each environment's copy of a secret is checked separately.
Why This Matters
Long-lived secrets increase the risk of exposure, as compromised credentials can be misused for extended periods. Regularly rotating secrets reduces the likelihood of unauthorized access and mitigates the impact of leaked credentials.
How to Fix It
If this check fails, take one of the following actions:
Rotate secrets at least every 180 days to maintain security.
Use OpenID Connect (OIDC) for authentication instead of long-term secrets to eliminate the need for manual rotation.
Automate secret management by integrating secret rotation policies into your security workflows.
Secrets should not be logged in build artifacts
This check ensures no secrets are present in build artifacts produced by workflows, preventing accidental exposure through downloadable outputs.
Why This Matters
If secrets are written into build artifacts — such as compiled binaries, logs, archives, or test reports — they can be downloaded by anyone with access to the workflow run, including users who would not otherwise have access to repository secrets. Attackers who gain access to artifacts can extract credentials and use them to access repositories, infrastructure, or sensitive data.
How to Fix It
If this check fails, take one of the following actions:
Review the artifact contents and remove any files containing secrets before uploading.
Mask or redact sensitive values from files that must be included in artifacts.
Avoid writing secrets to disk during workflow execution — use environment variables and ensure they are not persisted to artifact paths.
Use OpenID Connect (OIDC) for authentication where possible to reduce reliance on long-term secrets.
Secrets should not be logged in the build log
This check ensures no secrets are present in the build log, preventing accidental exposure of sensitive credentials.
Why This Matters
If secrets are logged in plaintext during builds, they can be exposed to unauthorized users, leading to security breaches. Attackers may exploit leaked credentials to gain access to repositories, infrastructure, or sensitive data.
How to Fix It
If this check fails, take one of the following actions:
Mask sensitive values by using GitHub's secrets masking feature to prevent them from appearing in logs.
Avoid echoing secrets in scripts, use environment variables securely instead of printing them.
Review build logs regularly for unintended secret exposure and take corrective action.
Use OpenID Connect (OIDC) for authentication where possible to reduce reliance on long-term secrets.
Tokens should have minimum scopes
This check ensures active personal access tokens don't carry more access than they need. It flags a classic personal access token with a coarse scope such as repo, admin:org, or workflow, and a fine-grained token that combines all-repository access with a write-level permission.
Why This Matters
Over-privileged tokens grant far more access than needed. A single leak can expose every repository in the organization, not just the ones the token's automation actually touches.
How to Fix It
Replace classic tokens with fine-grained tokens scoped to specific repositories and permissions.
Revoke the flagged token from the Apps & PATs page once its replacement is in place.
Configure which scopes count as over-privileged under Settings > Control Evaluation.
Tokens should be rotated within max age
This check ensures active personal access tokens are rotated before they exceed the configured maximum age for their class. Fine-grained and classic tokens have separate age limits.
Why This Matters
The longer a token lives, the more places it has a chance to leak into, and the wider the window in which a leaked credential still works.
How to Fix It
Rotate the token: create a replacement, update the automation that uses it, and revoke the old one.
Set the maximum age for fine-grained and classic tokens under Settings > Control Evaluation. Token owners get pre-expiry reminders while the policy is on.
Tokens should have an expiration
This check ensures active personal access tokens are created with an expiration, and that the expiration falls within the configured maximum age.
Why This Matters
A token that never expires is a permanent credential. If it leaks, access persists until someone notices, with no built-in cutoff.
How to Fix It
Re-create the token with an expiration within the allowed lifetime and revoke the non-expiring one.
Enable the no-expiry check under Settings > Control Evaluation to flag any new non-expiring tokens going forward.
Tokens should be actively used
This check ensures active personal access tokens show recent use within the configured idle window. A never-used token is measured from when it was granted or authorized.
Why This Matters
A token nobody uses is a credential nobody is watching. Tokens routinely outlive the work they were created for, sitting active long after anyone remembers why they exist.
How to Fix It
Confirm the token is no longer needed, then revoke it from the Apps & PATs page.
Set the idle-window threshold under Settings > Control Evaluation.
Last updated
Was this helpful?