Skip to content

Release: workflow hardening + comment-strip fix + dependabot config#68

Merged
linusdevx merged 5 commits into
mainfrom
dev
Jun 23, 2026
Merged

Release: workflow hardening + comment-strip fix + dependabot config#68
linusdevx merged 5 commits into
mainfrom
dev

Conversation

@linusdevx

Copy link
Copy Markdown
Owner

Promotes dev to main. Four commits:

  • 6e36282chore(ci): harden workflows for OpenSSF Scorecard (#67) — SHA-pins all GitHub Actions and adds top-level least-privilege permissions: blocks. Needed on main for Scorecard to actually pick it up (Scorecard analyzes main only).
  • 08e6932 + f211c81fix(editor): handle --!> when stripping XML comment markers (#66) — corrects the XML comment-strip regex.
  • f4b5bb6chore(dependabot): target dev, ignore major bumps — routes Dependabot PRs to dev and filters out major version bumps.

Expected impact

  • OpenSSF Scorecard moves from 6.2 → ~8.5+ once the next scheduled run picks up main. Can be triggered manually after merge via gh workflow run scorecard.yml --ref main.
  • Production deploy to Cloudflare Pages on merge (per CLAUDE.md, push to main triggers deploy).
  • Re. PR chore(deps): bump ossf/scorecard-action from 2.4.0 to 2.4.3 in the actions-minor-and-patch group #59 (Dependabot bump of ossf/scorecard-action) already on main: dev independently bumped that same action to v2.4.3 (a newer version, now SHA-pinned), so this PR supersedes it cleanly — no conflict expected.

After enabling Dependabot, it immediately opened 8 PRs against main —
including several cross-major bumps (vite 6→8, checkout 4→7, etc.) that
need human review and would have skipped the normal dev → main flow.

- target-branch: dev — PRs go through dev like any other change
- ignore semver-major — automated PRs are patch/minor only; majors are
  reviewed by a human when needed
- Security advisories still open PRs regardless of these ignore rules
The toggle-comment command stripped --> but not --!>, the rare-but-legal
HTML comment-end-bang form. Browsers (and the HTML spec) treat both as
valid comment terminators; toggling-off a buffer that used the bang form
would leave a stray --!> on the line.

Side benefit: closes CodeQL alert #1 (js/bad-tag-filter) on this line.
The alert was technically a false positive — the regex output is fed
into Monaco's text buffer, never rendered as HTML — but the underlying
incompleteness was real, so it's worth fixing rather than dismissing.
fix(editor): handle --!> when stripping XML comment markers
- Pin all GitHub Actions to commit SHAs (Pinned-Dependencies check)
- Add top-level 'permissions: contents: read' to codeql.yml and
  e2e-tests.yml (Token-Permissions check); scorecard.yml already had
  'permissions: read-all'
- Bump action versions while pinning:
  - actions/checkout v4 -> v4.2.2
  - actions/setup-node v4 -> v4.4.0
  - actions/upload-artifact v4 -> v4.4.3
  - github/codeql-action v3 -> v3.36.2
  - ossf/scorecard-action v2.4.0 -> v2.4.3

CodeQL's per-job 'permissions:' block is preserved — it widens the
top-level default to grant security-events:write for SARIF upload.
# Conflicts:
#	.github/workflows/scorecard.yml
@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Jun 23, 2026

Copy link
Copy Markdown
Contributor

Deploying xsltdebugx with  Cloudflare Pages  Cloudflare Pages

Latest commit: ce1821a
Status: ✅  Deploy successful!
Preview URL: https://e143897b.xsltdebugx.pages.dev
Branch Preview URL: https://dev.xsltdebugx.pages.dev

View logs

@linusdevx linusdevx merged commit ed9ae98 into main Jun 23, 2026
6 of 7 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