[Chore] Harden GitHub Actions with SHA pins and least privilege

Open
#1,440 7 comments 0 reactions 1 assignee View on GitHub

Maintainers usually reply within 2 days

@Johnpii1 is already working on this.

Since Nov 21, 2026.

  • #1461 by @Johnpii1 — open

Assessment

This issue has not been assessed yet.

Description

chore ci medium security Stellar Wave

Summary

Pin every action to a commit SHA, add explicit least-privilege permissions to every workflow, and lint the workflows in CI.

Motivation

Workflows use mutable action tags such as @v7, and only some jobs declare permissions, so most inherit the default token scope. There is no workflow linter or posture check, so a compromised or retagged action runs with broad access.

Proposed Solution

  • Pin each uses: reference to a full commit SHA with a version comment.
  • Add explicit permissions: at the workflow and job level with the minimum scopes.
  • Add actionlint and zizmor to CI.
  • Keep Dependabot updating the pins and document the SHA update process.
  • Optionally add an OpenSSF Scorecard run.

Scope

Field Value
Area CI
Protocol affected None
Network testnet and mainnet
Breaking change? No

Alternatives Considered

  • Keep tags and rely on Dependabot. Rejected because tags can be moved after review.
  • Pin only third-party actions. Rejected because first-party actions are also a supply chain input.

Acceptance Criteria

  • All actions are SHA-pinned with version comments.
  • Every workflow has explicit permissions.
  • Workflow linting runs on pull requests.
  • Dependabot keeps the pins current.
  • The update process is documented in CONTRIBUTING.md.

Additional Context

Workflows are in .github/workflows/ and Dependabot is configured in .github/dependabot.yml.

Dominant language
TypeScript
Stars
17
Forks
129
Avg merge
3d 13h
Merged PRs (30d)
54

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from drydocs/meridian

All issues in drydocs/meridian

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.