Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: tox-dev/github-workflows
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 6.7.3
Choose a base ref
...
head repository: tox-dev/github-workflows
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 6.8.0
Choose a head ref
  • 3 commits
  • 41 files changed
  • 2 contributors

Commits on Nov 10, 2026

  1. 🔒 ci: lock workflow actions with a lockfile (#62)

    Every action these shared workflows run is now locked to a commit
    through a [workflow
    lockfile](https://docs.github.com/en/actions/concepts/security/workflow-dependency-lockfiles),
    [generally available since
    2026-10-28](https://github.blog/changelog/2026-10-28-github-actions-workflow-lockfiles-are-generally-available/).
    🔒 The lock reaches every repository that calls them: a moved or
    rewritten tag on an action fails the job before any step runs, even in a
    caller that has no lockfile of its own.
    
    The runner enforces the lockfile;
    [gh-actions-lock](https://github.com/github/gh-actions-lock) writes it
    and also turns the SHA pins in `uses:` back into tags, so the workflows
    read `actions/checkout@v7.0.1` again. A new reusable
    `verify-actions-lock.yaml` runs `gh actions-lock --verify` and fails
    when a workflow uses an action the lockfile does not cover. This
    repository's checks call it, and any repository that adopts a lockfile
    can call it the same way.
    
    [zizmor](https://docs.zizmor.sh/usage/#workflow-lockfiles) moves to
    1.32.0, which reads the lockfile; 1.31.1 flags each tag ref as
    `unpinned-uses`. It checks only that a workflow is listed, not that each
    action has an entry, so a missing entry fails only the verify job.
    
    ### Evidence
    
    A throwaway workflow in `tox-dev/python-sbom` [ran `cooled-hooks.yaml`
    from this branch
    twice](https://github.com/tox-dev/python-sbom/actions/runs/42734513858).
    At the branch head the job passed and logged that it used the locked
    versions. At a commit that pins `actions/checkout` to an unreachable
    SHA, the job failed during set up with `Lockfile pin f548e57… for
    actions/checkout does not match ref v7.0.1`.
    
    ### Outside the lockfile
    
    - Reusable workflow calls keep their SHA pins; the actions inside them
    follow the defining repository's lockfile.
    - Composite actions in this repository keep their SHA pins, since a
    lockfile covers workflows only.
    - The `ossf/scorecard-action` container image is not pinned by digest,
    as the extension warns.
    gaborbernat authored Nov 10, 2026
    Configuration menu
    Copy the full SHA
    9fac56f View commit details
    Browse the repository at this point in the history
  2. 🔥 ci: drop guards a reviewer already sees (#63)

    Two checks only caught changes a reviewer already sees in the pull
    request diff, so they go. 🔥 Callers lose two error messages and nothing
    else: what the checks blocked still needs a merged, reviewed change to
    take effect.
    
    - **Writer jobs no longer refuse untrusted caller events.** The six
    writer workflows failed their first step when called from
    `pull_request`, `pull_request_target`, `workflow_run`, `issue_comment`
    or `merge_group`. Calling a writer from one of those means adding that
    trigger to the caller's workflow, which is a reviewed change. A [fork's
    pull
    request](https://docs.github.com/en/actions/reference/workflows-and-actions/events-that-trigger-workflows#workflows-in-forked-repositories)
    already gets a read-only token and no secrets, so it can neither mint
    the App token nor push.
    - **`validate-news` no longer fails a pull request that deletes
    `pylock.toml`** while Nab is still configured. The deletion is in the
    diff; the check now skips the lock comparison when there is no lock, as
    it already did when Nab was not configured.
    
    The release lock comparison against `pyproject.toml`, the cutoff
    exception expiry, the release patch allowlist and the PyPI artifact
    check stay: each catches something that is not visible in the diff. The
    threat model, troubleshooting page and per-workflow docs drop the
    refusal and the removed-lock error.
    gaborbernat authored Nov 10, 2026
    Configuration menu
    Copy the full SHA
    d8f2962 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    bf1c3ab View commit details
    Browse the repository at this point in the history
Loading