Skip to content

Remove security and quality targets from Makefile#970

Closed
tschm wants to merge 2 commits intomainfrom
tschm-patch-1
Closed

Remove security and quality targets from Makefile#970
tschm wants to merge 2 commits intomainfrom
tschm-patch-1

Conversation

@tschm
Copy link
Copy Markdown
Member

@tschm tschm commented Apr 3, 2026

Removed security and quality targets from Makefile.

Removed security and quality targets from Makefile.

Signed-off-by: Thomas Schmelzer <thomas.schmelzer@gmail.com>
Copilot AI review requested due to automatic review settings April 3, 2026 11:16
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR removes the repo-owned security and semgrep targets from the root Makefile, leaving only the remaining custom targets and relying more on the Rhiza-included makefiles.

Changes:

  • Deleted the root security target implementation (pip-audit + bandit).
  • Deleted the root semgrep target implementation.
  • Removed the associated help-section headers (##@ Security, ##@ Quality) from the root Makefile.

printf "${YELLOW}[WARN] SOURCE_FOLDER '${SOURCE_FOLDER}' not found, skipping semgrep.${RESET}\n"; \
fi

.PHONY: adr
Copy link

Copilot AI Apr 3, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removing the semgrep make target will break CI: both .github/workflows/rhiza_weekly.yml and .gitlab/workflows/rhiza_weekly.yml invoke make semgrep. With this change, those jobs will fail with “No rule to make target 'semgrep'”. Either keep/relocate the semgrep target (e.g., into .rhiza/make.d/*.mk) or update/remove the corresponding workflow steps in the same PR so CI remains green.

Suggested change
.PHONY: adr
.PHONY: semgrep adr
semgrep: ## Compatibility target for CI workflows that invoke `make semgrep`
@if command -v semgrep >/dev/null 2>&1; then \
semgrep scan; \
else \
echo "semgrep is not installed; skipping compatibility target."; \
fi

Copilot uses AI. Check for mistakes.
@tschm tschm closed this Apr 4, 2026
@tschm tschm deleted the tschm-patch-1 branch April 4, 2026 03:09
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