ci: improve OpenSSF Scorecard compliance#228
Merged
Merged
Conversation
The scorecard-action rejects workflows with global `env` or `defaults` blocks as a security measure. The `ARCHGATE_TELEMETRY` var is not needed in this workflow since no archgate CLI runs here.
Deploying archgate-cli with
|
| Latest commit: |
7223518
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://135241e2.archgate-cli.pages.dev |
| Branch Preview URL: | https://fix-scorecard-env.archgate-cli.pages.dev |
- release-binaries.yml: move `contents: write` to job-level - release.yml: move all permissions to job-level, scoped per job: - check: `contents: read` (uses app token for writes) - pull-request: `actions/contents/pull-requests/statuses: write` - release: `contents: write`, `id-token: write` (npm provenance) - Add CODEOWNERS for Branch-Protection codeowner review check Improves OpenSSF Scorecard Token-Permissions and Branch-Protection.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Fixes the OpenSSF Scorecard workflow failure and addresses all actionable findings from the first scan.
Scorecard workflow fix
env: ARCHGATE_TELEMETRY: "0"block fromscorecard.yml— the scorecard-action rejects workflows with global env varsToken-Permissions (0 → 10)
release-binaries.yml: movecontents: writefrom top-level to job-levelrelease.yml: move all permissions from top-level to job-level, scoped per job:contents: readonly (uses app token for writes)actions,contents,pull-requests,statuses: writecontents: write,id-token: write(npm provenance)Branch-Protection
.github/CODEOWNERS— the org ruleset requires codeowner review but no CODEOWNERS file existedPinned-Dependencies and Dependency-Update-Tool are handled by Renovate.
Test plan