Skip to content

ci(erpc:PLA-1349): harden release workflows#69

Merged
0x666c6f merged 2 commits into
morpho-mainfrom
feature/pla-1349-ciworkflow-supply-chain-hardening-across-morpho-infra-morpho
May 6, 2026
Merged

ci(erpc:PLA-1349): harden release workflows#69
0x666c6f merged 2 commits into
morpho-mainfrom
feature/pla-1349-ciworkflow-supply-chain-hardening-across-morpho-infra-morpho

Conversation

@0x666c6f
Copy link
Copy Markdown
Collaborator

@0x666c6f 0x666c6f commented May 6, 2026

Summary

  • Validate release workflow version_tag before use.
  • Remove direct shell interpolation of version_tag.
  • Default targeted workflows to no permissions and rely on per-job grants.

Changes

  • Release preparation now validates semver and passes version through step outputs/env.
  • Tygo install is pinned to a fixed module version.
  • Claude and Scorecard workflows default to permissions: {}.

Linear

Copilot AI review requested due to automatic review settings May 6, 2026 09:40
@0x666c6f 0x666c6f self-assigned this May 6, 2026
@linear
Copy link
Copy Markdown

linear Bot commented May 6, 2026

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR hardens GitHub release-related workflows by reducing default token permissions and validating/passing release versions more safely across steps.

Changes:

  • Set workflow-level permissions: {} and rely on per-job permission grants (Scorecard + Claude workflows, and Release workflow).
  • Add version_tag validation and avoid direct interpolation by passing the validated value via step outputs/env.
  • Pin tygo installation to a fixed version in the release workflow.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.

File Description
.github/workflows/scorecards.yml Drops default workflow token permissions; keeps explicit job-level permissions for Scorecard publishing/upload.
.github/workflows/release.yml Adds version_tag validation + safer propagation; pins tygo; removes direct interpolation; sets default permissions to none.
.github/workflows/claude.yml Sets workflow-level permissions to none; relies on job-level permissions already present.
.github/workflows/claude-code-review.yml Sets workflow-level permissions to none; relies on job-level permissions already present.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread .github/workflows/release.yml Outdated
@0x666c6f 0x666c6f merged commit a16a70c into morpho-main May 6, 2026
12 checks passed
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