Skip to content

ci: remove redundant workflow-based Semgrep runs - #36437

Merged
mbiuki merged 3 commits into
mainfrom
ci/remove-semgrep-workflow-jobs
Jul 8, 2026
Merged

ci: remove redundant workflow-based Semgrep runs#36437
mbiuki merged 3 commits into
mainfrom
ci/remove-semgrep-workflow-jobs

Conversation

@mbiuki

@mbiuki mbiuki commented Jul 6, 2026

Copy link
Copy Markdown
Member

Summary

The Semgrep App (semgrep ci + SEMGREP_APP_TOKEN) is already installed and scans every PR, posting findings as PR comments. The workflow jobs were duplicating that work and adding unnecessary nodes to the needs dependency chains.

  • Delete cicd_comp_semgrep-phase.yml entirely
  • Remove semgrep: job from cicd_1-pr.yml; simplify finalize needs
  • Remove disable-semgrep input and semgrep: job from cicd_3-trunk.yml; drop semgrep from deployment and finalize needs

Closes #36436

After merge (manual)

Remove these from repo Settings → Secrets and Variables:

  • Secret: SEMGREP_APP_TOKEN
  • Variable: DISABLE_SEMGREP
  • Variable: SEMGREP_NO_FAIL

Test plan

  • Verify CI passes on this PR (no Semgrep job should appear in the workflow run)
  • Confirm the Semgrep App still posts scan results on the next PR after merge

mbiuki and others added 2 commits July 6, 2026 14:08
The Semgrep App (semgrep ci + SEMGREP_APP_TOKEN) already scans every PR
and posts findings as PR comments. The workflow jobs duplicated that work
and added unnecessary nodes to the needs dependency chains.

- Delete cicd_comp_semgrep-phase.yml entirely
- Remove semgrep job from cicd_1-pr.yml; simplify finalize needs
- Remove disable-semgrep input and semgrep job from cicd_3-trunk.yml;
  drop semgrep from deployment and finalize needs

Repo secrets/variables (SEMGREP_APP_TOKEN, DISABLE_SEMGREP,
SEMGREP_NO_FAIL) can be removed from repo settings after merge.

Closes #36436

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01JHg1W7beD4Z1yLoTJpyXss
Follow-up to previous commit — stages the edits to cicd_1-pr.yml and
cicd_3-trunk.yml that were missed from the initial commit.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01JHg1W7beD4Z1yLoTJpyXss
@mbiuki
mbiuki requested a review from a team as a code owner July 6, 2026 18:09
@github-actions github-actions Bot added the Area : CI/CD PR changes GitHub Actions/workflows label Jul 6, 2026
@claude

claude Bot commented Jul 6, 2026

Copy link
Copy Markdown
Contributor

Claude finished @mbiuki's task in 1m 11s —— View job


Code Review

Reviewed the 3 changed workflow files against origin/main.

  • Gather context (diff, cross-references)
  • Verify no dangling references to the removed semgrep job
  • Review needs chains for correctness

New Issues

No issues found.

Verification notes:

  • cicd_comp_semgrep-phase.yml deletion is safe — grep across .github/**/*.yml finds zero remaining references to cicd_comp_semgrep-phase.yml, the semgrep job, SEMGREP_APP_TOKEN, or disable-semgrep/DISABLE_SEMGREP in any workflow.
  • cicd_1-pr.yml: finalize.needs correctly narrowed from [semgrep, test][test]. Since the removed semgrep job itself declared needs: [initialize, build], dropping it doesn't orphan any upstream job — build is still reachable via test's chain.
  • cicd_3-trunk.yml: semgrep removed from both deployment.needs and finalize.needs; the disable-semgrep dispatch input is also removed. No other job referenced needs.semgrep.* outputs, so no broken expressions remain.
  • The finalize reusable workflow consumes needsData generically (toJson(needs)), so removing a key doesn't break it.
  • Header comments were updated consistently to drop the "Semgrep analysis" phrasing.

Non-blocking (out of scope, not in this diff): WORKFLOW_ARCHITECTURE.md and README.md still document the Semgrep phase in their pipeline diagrams and secret lists. Worth a follow-up doc cleanup so the architecture docs don't drift, but not required for this PR.

The manual post-merge secret/variable cleanup (SEMGREP_APP_TOKEN, DISABLE_SEMGREP, SEMGREP_NO_FAIL) noted in the PR description is correct — those live in repo Settings and can't be removed via workflow files.

LGTM. ✅

@github-actions

github-actions Bot commented Jul 6, 2026

Copy link
Copy Markdown
Contributor

🤖 dotBot Review (Bedrock)

Reviewed 3 file(s); 0 candidate(s) → 0 confirmed, 0 uncertain (unverified, kept for review).

✅ No issues found after verification.


us.deepseek.r1-v1:0 · Run: #28812934094 · tokens: in: 10054 · out: 2470 · total: 12524 · calls: 4 · est. ~$0.027

@mbiuki

mbiuki commented Jul 6, 2026

Copy link
Copy Markdown
Member Author

❌ Linked Issue Needs Team Label

This PR is linked to issue #36436, but that issue has no Team : * label. Every linked issue must be owned by a team for tracking and triage.

How to fix this:

Apply a Team : * label to the linked issue (e.g., Team : Scout, Team : Platform, Team : Falcon, Team : Maintenance). Then push a new commit or edit the PR description to re-run this check.

This comment was automatically generated by the issue linking workflow

fixed

@mergify

mergify Bot commented Jul 7, 2026

Copy link
Copy Markdown

Queued — the merge queue status continues in this comment ↓.

@erickgonzalez
erickgonzalez added this pull request to the merge queue Jul 7, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Jul 7, 2026
@mbiuki
mbiuki enabled auto-merge July 7, 2026 19:24
@mbiuki
mbiuki added this pull request to the merge queue Jul 7, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Jul 7, 2026
@mergify

mergify Bot commented Jul 7, 2026

Copy link
Copy Markdown

Merge Queue Status

This pull request spent 53 minutes 4 seconds in the queue, including 52 minutes 47 seconds running CI.

Waiting for any of
  • check-neutral = Finalize / Final Status
  • check-skipped = Finalize / Final Status
  • check-success = Finalize / Final Status
All conditions

Reason

The merge conditions cannot be satisfied due to failing checks

  • Finalize / Final Status
  • Initialize / Initialize

Failing checks:

Hint

You may have to fix your CI before adding the pull request to the queue again.
If you update this pull request, to fix the CI, it will automatically be requeued once the queue conditions match again.
If you think this was a flaky issue instead, you can requeue the pull request, without updating it, by posting a @mergifyio queue comment.

Tick the box to put this pull request back in the merge queue (same as @mergifyio queue).

  • Requeue this pull request

@mergify mergify Bot added the queued label Jul 7, 2026
mergify Bot added a commit that referenced this pull request Jul 7, 2026
@mbiuki mbiuki added the Team : Security Issues related to security and privacy label Jul 7, 2026
@mbiuki
mbiuki added this pull request to the merge queue Jul 7, 2026
@mbiuki mbiuki self-assigned this Jul 7, 2026
@mbiuki mbiuki moved this to In Review in dotCMS - Product Planning Jul 7, 2026
@mergify mergify Bot added dequeued and removed queued labels Jul 8, 2026
Merged via the queue into main with commit ed22589 Jul 8, 2026
60 checks passed
@mbiuki
mbiuki deleted the ci/remove-semgrep-workflow-jobs branch July 8, 2026 00:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

AI: Safe To Rollback Area : CI/CD PR changes GitHub Actions/workflows dequeued Team : Security Issues related to security and privacy

Projects

Status: In Review

Development

Successfully merging this pull request may close these issues.

ci: remove redundant workflow-based Semgrep runs (Semgrep App already handles PR scanning)

2 participants