CI: set read-only token permissions and pin actions by SHA #1959

issue fametrano opened this issue on October 10, 2026
  1. fametrano commented at 11:16 PM on October 10, 2026: contributor

    .github/workflows/ci.yml has no permissions: key, so GITHUB_TOKEN gets the repository default, and actions/checkout keeps its credentials. The actions are pinned to mutable tags (actions/checkout@v5, docker/setup-buildx-action@v4, docker/build-push-action@v7, actions/cache@v5), and the sagemath/sagemath:latest and debian:stable-slim images are unpinned; #1853 was a latest update breaking the sage job. Nothing is exploitable today: CI releases nothing, and no run: step reads pull request data.

    Would you take a pull request that sets permissions: contents: read and persist-credentials: false, and pins actions and images by full SHA or digest with version comments?

    Assisted-by: my usual tools (LLM, Internet, computer). Mistakes are mine.

  2. real-or-random added the label ci on Oct 12, 2026
  3. real-or-random added the label tweak/refactor on Oct 12, 2026
  4. real-or-random commented at 6:58 AM on October 12, 2026: contributor

    Would you take a pull request that sets permissions: contents: read and persist-credentials: false, and pins actions and images by full SHA or digest with version comments?

    Concept ACK

    Some defense-in-depth hardening won't hurt here, in particular if it's as simple as adding a permission block with two entries. Workflow permissions are set to "Read repository contents and packages permissions" but it sounds like a good idea to make it explicit in the yaml (if only for forks).

    But we should keep this in sync with whatever best practices Bitcoin Core applies here. cc @hebasto @fanquake

  5. fametrano referenced this in commit 64753f0d99 on Oct 13, 2026
  6. fametrano referenced this in commit e9e700f8dc on Oct 25, 2026
  7. fametrano referenced this in commit d8a7f67401 on Nov 17, 2026
  8. fametrano closed this on Nov 19, 2026


github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin-core/secp256k1. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2026-12-02 10:15 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me