Skip to content

Repair Scorecard CI and prevent security scan false positives - #122

Merged
hyperpolymath merged 4 commits into
mainfrom
coderabbit/fix-ci-check-failures/d21241c7
Sep 17, 2026
Merged

hyperpolymath merged 4 commits into
mainfrom
coderabbit/fix-ci-check-failures/d21241c7

Conversation

@coderabbitai

@coderabbitai coderabbitai Bot commented Sep 15, 2026

Copy link
Copy Markdown
Contributor

Fix the Scorecard workflow’s invalid permissions structure and grant its caller job the actions, contents, security-events, and id-token access it requires. Generate synthetic API-token fixtures to avoid secret-scanner false positives, and document inert unsafe-function scanner signatures as non-proof-debt. Validation was not run.

View coding task

hyperpolymath and others added 3 commits September 14, 2026 17:31
…tents: read

Two defects, and fixing only the first would look like a cure while
changing nothing.

1. `permissions: read-all` is a SCALAR, so the indented `actions: read`
   beneath it is a mapping entry under a scalar: invalid YAML. GitHub
   never parsed the file, the run emitted zero jobs, and the Scorecard
   check never appeared. The gate was ABSENT, not red.

2. The `analysis` job declares its own `permissions:` block naming only
   `security-events` and `id-token`. A job-level block REPLACES the
   workflow-level one rather than merging with it, so the reusable
   workflow was being called without `contents: read` and could not
   check out. Deleting the orphan key alone would yield a file that
   parses and still emits no check.

Adds `contents: read` to the job block, matching aerie#76 (merged
2026-09-13), which carries exactly these three job permissions.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0178nN4Nm3neFRy5K9StZKnB
The job-level `permissions:` block REPLACES the workflow-level block, so the
reusable workflow's own `actions: read` cannot elevate the caller's token.
Without it the caller's effective `actions` permission is `none`, and Scorecard's
Packaging check (Actions.ListWorkflowRunsByFileName) can error.

Caught by CodeRabbit on palimpsest-license#151; verified against the whole family:
11 of 13 scorecard.yml callers omit it, including aerie which is already on main.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0178nN4Nm3neFRy5K9StZKnB
@coderabbitai

coderabbitai Bot commented Sep 15, 2026

Copy link
Copy Markdown
Contributor Author

Important

Review skipped

This PR was authored by the user configured for CodeRabbit reviews. CodeRabbit does not review PRs authored by this user. It's recommended to use a dedicated user account to post CodeRabbit review feedback.

⚙️ Run configuration

Configuration used: Organization UI

Review profile: ASSERTIVE

Plan: Essentials

Run ID: 13ff619c-5073-4986-9364-c97487d10d9d

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review

Comment @coderabbitai help to get the list of available commands.

@hyperpolymath
hyperpolymath enabled auto-merge (squash) September 17, 2026 10:21
@sonarqubecloud

Copy link
Copy Markdown

@hyperpolymath
hyperpolymath merged commit 1c90a9c into main Sep 17, 2026
30 of 40 checks passed
@hyperpolymath
hyperpolymath deleted the coderabbit/fix-ci-check-failures/d21241c7 branch September 17, 2026 10:22
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