Skip to content

chore(ci): SHA-pin actions, drop deprecated release-upload steps (audit bucket 6 — L2) - #7

Merged
CR0CKER merged 1 commit into
mainfrom
chore/pin-actions
Jul 20, 2026
Merged

CR0CKER merged 1 commit into
mainfrom
chore/pin-actions

Conversation

@CR0CKER

@CR0CKER CR0CKER commented Jul 20, 2026

Copy link
Copy Markdown
Owner

What changed

Audit bucket 6, finding L2 — the final one.

  • SHA-pin every GitHub Action (ncipollo/release-action, actions/checkout, actions/setup-node) to full commit SHAs with version comments, across ci.yml and publish.yml. A moved/hijacked tag can no longer substitute action code; Dependabot's github-actions updates keep the pins current.
  • Drop the two archived actions/upload-release-asset@v1 steps in publish.yml. ncipollo/release-action attaches the release zip + package.json via its artifacts input, so they were redundant (and the action has been unmaintained since 2021).
  • Add least-privilege permissions: contents: write to publish.yml (it had none, relying on the repo default).
  • The release zip now embeds the tag via github.ref_name (previously computed separately only to name the upload-asset).

Testing

  • ci.yml is exercised by this PR's own CI run (build/test/typecheck).
  • ⚠️ publish.yml is tag-triggered and can't run on a PR. YAML validated; the asset wiring is a straightforward ncipollo artifacts swap. Verify the next release (or cut a throwaway tag) attaches logseq-ical-sync-<tag>.zip + package.json.

Reviewer note

No automated PR reviewer configured; self-reviewed — SHAs resolved from the current major tags, least-privilege permissions, no secrets.

🤖 Generated with Claude Code

https://claude.ai/code/session_019cVCdCtNzUJmy1yen3JyBk

…it L2)

Pin ncipollo/release-action and the first-party actions/checkout &
actions/setup-node to full commit SHAs (with version comments) instead of
mutable major tags, so a moved tag can't substitute action code. Dependabot's
github-actions updates maintain the pins.

In publish.yml, remove the two archived actions/upload-release-asset@v1 steps —
ncipollo/release-action attaches the zip + package.json via its 'artifacts'
input — and add explicit least-privilege 'permissions: contents: write'. The
release zip now embeds the tag via github.ref_name (was computed separately for
the removed upload step).

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019cVCdCtNzUJmy1yen3JyBk
@CR0CKER
CR0CKER merged commit d3a34ad into main Jul 20, 2026
3 of 4 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.

1 participant