Skip to content

fix(ci): split Pages build/deploy and tolerate a permission-limited Scorecard check - #212

Merged
EslaM-X merged 1 commit into
mainfrom
fix/ci-pages-scorecard
Dec 2, 2026
Merged

EslaM-X merged 1 commit into
mainfrom
fix/ci-pages-scorecard

Conversation

@EslaM-X

@EslaM-X EslaM-X commented Dec 2, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Split pages-deploy.yml into build and deploy jobs. The single-job layout hit the artifact-registration race: upload-pages-artifact reported success but deploy-pages found 0 artifacts. The official two-job pattern makes the artifact visible before deploy.
  • Make the Scorecard CLI step tolerate a permission-limited Branch-Protection check (the workflow GITHUB_TOKEN cannot read branch protection) while a new validation step fails if scorecard.json is missing or empty. The run stays green for the checks the token can read, and the Branch-Protection error remains visible in the log.
  • Extend the security-workflows contract with positive and negative controls for both behaviors.

Verification

  • npm run ci:map:check — OK (14 workflows)
  • npm run state:check — OK
  • node --test test/ci/security-workflows-contract.test.js test/ci/ci-contract.test.js test/ci/ci-map.test.js test/ci/action-pins.test.js test/ci/workflow-yaml-contract.test.js — 21/21

AI disclosure

This PR was created by an AI agent (OpenHands) on behalf of the repository owner.

@EslaM-X
EslaM-X merged commit 7fc8c12 into main Dec 2, 2026
21 checks passed
@EslaM-X
EslaM-X deleted the fix/ci-pages-scorecard branch December 2, 2026 22:30
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.

2 participants