Skip to content

Claude workflows: strict permission mode, action v1.0.280, Semgrep severities, Dependabot cooldown - #15

Merged
daniel-pittman merged 1 commit into
developfrom
ci/permission-mode-and-semgrep
Nov 19, 2026
Merged

daniel-pittman merged 1 commit into
developfrom
ci/permission-mode-and-semgrep

Conversation

@daniel-pittman

Copy link
Copy Markdown
Owner

What this changes

  • Strict permission mode on every Claude step. From claude-code-action v1.0.273, a session without --permission-mode starts in auto mode. A safety review can then approve a tool call that no allow rule covers, so --allowedTools stops being a strict list. The review step already set --permission-mode default. The @claude workflow now sets it too.
  • claude-code-action v1.0.280 (469588f) on every step.
  • Semgrep severities. The Semgrep comment's summary counted only the older severity names (ERROR, WARNING, INFO). Its table labeled everything else LOW. Semgrep now reports some rules with the newer names: p/ci's dependabot-missing-cooldown reports MEDIUM, for example. Such a finding was counted as zero and shown as LOW, and the Claude review reads that comment. One jq mapping (sev) now feeds both the counts and the table: ERROR, CRITICAL and HIGH map to HIGH; WARNING and MEDIUM map to MEDIUM; INFO and LOW map to LOW.
  • Dependabot cooldown. Every updates: entry has cooldown: default-days: 7. Dependabot proposes a version only after it has been out a week, since a compromised or mistaken release is usually caught within days. Security updates are not delayed.

How it was checked

  • Workflow tests: this repository's workflows and dependabot.yml pass the shared workflow checks. Three new checks fail on the previous files (a fourth, for the verdict extractor, skips here: this review is advisory):
    • test_every_action_step_pins_the_permission_mode: exactly one --permission-mode, and it is default, on every action step.
    • test_semgrep_counts_and_table_share_one_severity_mapping: every severity use goes through sev, evaluated on all seven names.
    • test_every_dependabot_update_waits_out_a_cooldown.
  • actionlint: reports nothing.
  • Semgrep live: Semgrep's p/ci rules on a dependabot.yml without a cooldown report three MEDIUM findings. The previous comment code counted 0 and labeled them LOW; the new mapping counts 3 MEDIUM.
  • Not exercised on this PR: the Claude review. The review action skips any PR that edits its own workflow.

🤖 Generated with Claude Code

…verities, Dependabot cooldown

- Every claude-code-action step passes --permission-mode default. From
  v1.0.273 a session without a mode starts in auto mode, where a safety
  review can approve a tool no allow rule covers, so --allowedTools stops
  being a strict list. The review step already set it; the @claude bot
  now does too.
- claude-code-action moves from v1.0.271 to v1.0.280 (469588f).
- The Semgrep comment's summary counted only the older severity names
  (ERROR, WARNING, INFO), and its table labeled everything else LOW, so a
  MEDIUM or HIGH finding reported with the newer names was counted as
  zero and shown as LOW. One jq mapping now feeds both.
- Every Dependabot ecosystem waits 7 days after a release (cooldown).
  Security updates are not delayed.

The canonical workflow tests gain a check for each: every action step
pins the permission mode, the Semgrep counts and table share one mapping
(evaluated on all seven severity names), every Dependabot update has a
cooldown of at least 7 days, and in a gated repository the verdict
extractor is told not to count the Semgrep or CI summaries the review
restates (they can carry HIGH counts for findings already in the
repository).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@github-actions

Copy link
Copy Markdown

Semgrep (OSS): no findings

Clean scan. Posted before the Claude review.

@github-actions

Copy link
Copy Markdown

CI Tests

Tests passed: ruff lint and the unittest matrix (Python 3.11 to 3.14, Linux and macOS) are green on f4222e1.

Posted before the Claude review so the test outcome is folded into the review.

@daniel-pittman
daniel-pittman merged commit ea0e878 into develop Nov 19, 2026
23 checks passed
@daniel-pittman
daniel-pittman deleted the ci/permission-mode-and-semgrep branch November 19, 2026 07:14
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