Skip to content

[AAASM-3879] 🔧 (ci): Pin checkout + add least-priv permissions#209

Draft
Chisanan232 wants to merge 2 commits into
masterfrom
v0.0.1/AAASM-3879/ci_pin_node-sdk
Draft

[AAASM-3879] 🔧 (ci): Pin checkout + add least-priv permissions#209
Chisanan232 wants to merge 2 commits into
masterfrom
v0.0.1/AAASM-3879/ci_pin_node-sdk

Conversation

@Chisanan232

Copy link
Copy Markdown
Contributor

Target

  • Task summary:

    Harden node-sdk CI step-action pinning and least-privilege token scope. Part 2 of 2 for AAASM-3879 (the python-sdk half ships as a separate PR, 🤖 (aa-ffi-node): Bump agent-assembly git pins to v0.0.1-beta.4 #193).

  • Task tickets:

  • Key point change:

    • native-pin-consistency.yml: pin the lone unpinned actions/checkout@v7@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0 (the SHA already used by every other workflow in this repo).
    • Add a top-level permissions: contents: read block to build-addon, test-matrix, module-system-smoke, precommit, regression — they only build/test, so read-only is sufficient and revokes the default broad GITHUB_TOKEN scope.

Effecting Scope

  • Action Types:
    • 🍀 Improving something (performance, code quality, security, etc.)
      • 🟢 No breaking change
  • Scopes:
    • 🚀 Building
      • 🤖 CI/CD
  • Additional description:
    CI-config-only; actionlint clean on all six modified workflows.

Description

  • SHA-pin the unpinned checkout action and add least-privilege permissions blocks. No runtime/SDK code changes.

Refs AAASM-3879

🤖 Generated with Claude Code

https://claude.ai/code/session_019mSz31RysZF6DYToUoBWLf

Chisanan232 and others added 2 commits June 27, 2026 23:11
Pin the lone unpinned `actions/checkout@v7` to the v7.0.0 commit SHA
already used by every other workflow in this repo, so a mutable-tag
move cannot alter the checkout step.

Refs AAASM-3879

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019mSz31RysZF6DYToUoBWLf
Add a top-level `permissions: contents: read` block to the five CI
workflows that lacked one (build-addon, test-matrix, module-system-smoke,
precommit, regression). All only build/test, so read-only is sufficient
and revokes the default broad GITHUB_TOKEN scope.

Refs AAASM-3879

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019mSz31RysZF6DYToUoBWLf
@codecov

codecov Bot commented Jun 27, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@sonarqubecloud

Copy link
Copy Markdown

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.

1 participant