Skip to content

ci: least-privilege permissions on assets.yml; add email to SECURITY.md (OpenSSF Scorecard) - #877

Merged
ronaldtse merged 1 commit into
mainfrom
chore/scorecard-remediation
Nov 24, 2026
Merged

ronaldtse merged 1 commit into
mainfrom
chore/scorecard-remediation

Conversation

@ronaldtse

Copy link
Copy Markdown
Contributor

Summary

Remediates OpenSSF Scorecard findings:

  • Token-Permissions (0 -> 10): assets.yml declares top-level permissions: contents: read; contents: write moves to the single assets job that uploads release assets.
  • Bug fix along the way: the workflow_dispatch trigger (with its tag input) was incorrectly nested inside the permissions: mapping — an invalid permissions key, and manual dispatch was never actually enabled despite the job's if: condition and inputs.tag usage. Restored to the on: block where it belongs.
  • Security-Policy (4 -> 10): SECURITY.md gains the [email protected] email reporting channel, matching the sibling repos.

Test plan

  • YAML validated locally (on, top-level and job-level permission keys parse)
  • rake/lockstep CI green on this PR
  • assets.yml is tag-triggered only; release-asset upload path unchanged (job still has contents: write)

…md (OpenSSF Scorecard)

assets.yml: restore workflow_dispatch (with its tag input) to the on:
block - it was incorrectly nested inside permissions:, so manual
dispatch never worked and permissions carried a non-standard key.
Grant contents: write at the job level only; top level drops to
contents: read.

SECURITY.md: add the [email protected] reporting channel used by
the sibling repos (Scorecard Security-Policy partial -> full).

Clears the Token-Permissions findings from OpenSSF Scorecard.
@ronaldtse
ronaldtse merged commit 5e09bec into main Nov 24, 2026
14 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