Repository navigation
Pin the Playwright image by digest, lock the workflow actions and run Plumber on every change - #6835
Open
Totara-thib wants to merge 4 commits into
Open
Totara-thib wants to merge 4 commits into
Totara-thib wants to merge 4 commits into
Conversation
The tracker tests run in mcr.microsoft.com/playwright, pulled by tag. A tag can be re-pushed, so the job would run whatever the registry serves under that name on the day. The digest pins the exact image, and the tag stays in the reference so the Playwright version under test is still readable and bumped the same way as before.
The workflows pinned each action by commit, with the version in a comment, and Dependabot kept the pins current. GitHub's workflow dependency lockfile now holds that same guarantee in one place: .github/workflows/actions.lock, generated with gh actions-lock, records the commit every action reference resolves to, transitive actions included, and the runner uses those commits even if a tag moves later. Every reference moves from the commit to the exact release that commit is, so the version is readable in the workflow and Dependabot keeps bumping it and matching its security alerts, which do not cover bare commit pins. One reference, useblacksmith/build-push-action, has no release for its commit and stays on it. Maintenance: after adding or bumping an action, run gh actions-lock at the repository root and commit the file with the workflow change. Dependabot updates the lockfile alongside the version it bumps.
A small workflow runs the Plumber CLI on pushes to master and on pull requests. It checks the GitHub workflows for the classes of findings the previous commits fixed (missing permissions, tokens left in checkouts, a container pulled by tag, floating action refs) and fails under 85 points, so one small finding never blocks a pull request. Its two actions are recorded in actions.lock like the others. The overlay keeps the built-in defaults and trusts the twelve actions this repository uses on top of them. The score badge goes under the title of SECURITY.md, the page GitHub shows in the Security tab.
Plumber v0.7.24 adds a check that every tag is covered by a tag ruleset. This repository has none, and a ruleset is a repository setting only an admin can add, so no pull request can satisfy it. The check is off in .plumber.yaml, with a comment that says to delete those lines once tags are protected.
Totara-thib
force-pushed
the
plumber-score
branch
3 times, most recently
from
December 4, 2026 15:29
e3f5966 to
f0f01ad
Compare
This branch has not been deployed
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.
Changes
Hi again! Follows up on #6784, merged yesterday. Three commits, each stands on its own, a new official GitHub method exist for pinning actions with sha commits
gh actions-lock, I'm suggesting using it and I've also add Plumber in CI to ensure workflows don't drift again and are secured (each commits could be removed).mcr.microsoft.com/playwright, pulled by tag, now pinned by digest with the tag kept so the version stays readable..github/workflows/actions.lock, GitHub's own workflow dependency lockfile, records the commit every action resolves to, transitive ones included, enforced by the runner even if a tag moves. Refs become the release each commit is, readable in the workflow, and Dependabot keeps bumping them and matching its security alerts, which skip bare commit pins. The commits recorded are the ones pinned here already. Maintenance:gh actions-lockafter adding or bumping an action, Dependabot updates the file with its bumps..plumber.yamloverlay inherits the built-in defaults and trusts the twelve actions this repository uses.Score badge
Like OpenSSF Scorecard's published results: every run publishes the score, the badge in SECURITY.md shows master, a failed publish never fails your CI. No token or secret is needed. It reads UNKNOWN until the first run on master. Removing
score-pushis the whole opt-out.I work on Plumber. If you do not want the tool, no hard feelings, say so and I drop the last commit, the other two stand on their own.
Tests
Changelog
Documentation
Dark mode