Skip to content

fix: pin 4 unpinned action(s),extract 3 unsafe expression(s) to env vars - #157

Merged
JillRegan merged 1 commit into
1Password:mainfrom
dagecko:runner-guard/fix-ci-security
May 14, 2026
Merged

JillRegan merged 1 commit into
1Password:mainfrom
dagecko:runner-guard/fix-ci-security

Conversation

@dagecko

@dagecko dagecko commented Apr 3, 2026 •

Copy link
Copy Markdown
Contributor

Summary

This PR hardens your CI/CD workflows against supply chain attacks by pinning GitHub Actions to immutable commit SHAs and extracting unsafe expressions from run: blocks into env: mappings.

Fixes applied (in this PR)

Rule Severity File Description
RGS-008 high e2e-tests.yml Extracted 2 expression(s) to env vars
RGS-007 medium lint-and-test.yml Pinned 1 action(s) to commit SHA
RGS-007 medium ok-to-test.yml Pinned 1 action(s) to commit SHA
RGS-007 medium pr-check-signed-commits.yml Pinned 1 action(s) to commit SHA
RGS-007 medium test-e2e.yml Pinned 1 action(s) to commit SHA
RGS-008 high test-e2e.yml Extracted 1 expression(s) to env vars

Why this PR

I've been scanning the top 50,000 GitHub repositories for CI/CD pipeline vulnerabilities over the last 5 weeks as part of an ongoing research effort into the supply chain attack campaign that started with tj-actions in March and has escalated through multiple phases since.

You may notice that I have opened up a lot of PRs - don't take that as a negative. I've been working around the clock on this and monitoring all comms. It may take me an hour or two to get back to a comment you leave.

How to verify

Every change is mechanical and preserves workflow behavior:

  • SHA pinning: action@v3 becomes action@abc123 # v3 - original version preserved as comment
  • Expression extraction: ${{ expr }} in run: moves to env: block, referenced as "${ENV_VAR}" in the script
  • No workflow logic, triggers, or permissions are modified

I've had 22 merges so far. I created a tool called Runner Guard to assist in my research - it does mechanical, non-AI fixes to reduce hallucinations to zero and produce consistent fixes. If you would like to scan it yourself to validate my work, feel free.

Happy to answer any questions - I'm monitoring comms on every PR.

- Chris Nyhuis (dagecko)

Automated security fixes applied by Runner Guard (https://github.com/Vigilant-LLC/runner-guard).

Changes:
 .github/workflows/e2e-tests.yml               | 26 +++++++++++++++-----------
 .github/workflows/lint-and-test.yml           |  2 +-
 .github/workflows/ok-to-test.yml              |  2 +-
 .github/workflows/pr-check-signed-commits.yml |  2 +-
 .github/workflows/test-e2e.yml                |  6 ++++--
 5 files changed, 22 insertions(+), 16 deletions(-)
@JillRegan

Copy link
Copy Markdown
Contributor

Thank you for this updated @dagecko 👍 I agree with the changes, and based on Github's own security hardening recommendation, pinning to commit SHA for third party actions is best practice.

I verified SHAs against the upstream tags and all looks good 👍

@JillRegan
JillRegan merged commit cc166c6 into 1Password:main May 14, 2026
1 check passed
@JillRegan JillRegan mentioned this pull request Jun 11, 2026
onap-github pushed a commit to onap/policy-drools-pdp that referenced this pull request Jun 15, 2026
## Release notes

Sourced from 1password/load-secrets-action's releases.

v4.0.1
What's Changed
Fix

Fixed a Windows specific issue where 1Password CLI installation could fail because the downloaded archive lacked a .zip extension required by PowerShell’s archive extraction fallback. (#154)
Bump actions/checkout from v5 to v6 in CI workflows. (#156)

Security

Harden GitHub Actions workflows by pinning external actions to immutable commit SHAs. (#157)

Docs

Add 1Password API Terms of Service notice to the README (#166)

New Contributors

@​dagecko made their first contribution in 1Password/load-secrets-action#157
@​superteppo made their first contribution in 1Password/load-secrets-action#154
@​libutcher made their first contribution in 1Password/load-secrets-action#166

Full Changelog: 1Password/load-secrets-action@v4.0.0...v4.0.1

## Commits

3a12b0a Merge pull request #167 from 1Password/release/v4.0.1
0f0cd1b create new build
be2f36b Add Terms of Service to README (#166)
908aabf Merge pull request #154 from superteppo/main
cc166c6 Merge pull request #157 from dagecko/runner-guard/fix-ci-security
080cd2d Merge branch '1Password:main' into main
2a321c3 fix: pin 4 unpinned action(s),extract 3 unsafe expression(s) to env vars
2a9101f Merge pull request #156 from 1Password/jill/bump-actions
5b18565 bump actions
a763b8d fix installer error on windows
See full diff in compare view

![Dependabot compatibility score](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)

Issue-ID: CIMAN-33
Signed-off-by: dependabot[bot] <support@github.com>
Change-Id: I10e73c81528f3abf24d5963c5c329eaed81090c0
GitHub-PR: #17
GitHub-Hash: 1a3de8be57538b84
Signed-off-by: onap.gh2gerrit <releng+onap-gh2gerrit@linuxfoundation.org>
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.

2 participants