Skip to content

Conversation

@rahuldevikar761
Copy link
Collaborator

No description provided.

@rahuldevikar761 rahuldevikar761 requested a review from a team as a code owner February 10, 2026 04:30
Copilot AI review requested due to automatic review settings February 10, 2026 04:30
@github-actions
Copy link

github-actions bot commented Feb 10, 2026

⚠️ Deprecation Warning: The deny-licenses option is deprecated for possible removal in the next major release. For more information, see issue 997.

Dependency Review

✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.

OpenSSF Scorecard

PackageVersionScoreDetails
actions/actions/checkout 4.*.* 🟢 6.4
Details
CheckScoreReason
Code-Review🟢 10all changesets reviewed
Maintained🟢 57 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 5
Dangerous-Workflow🟢 10no dangerous workflow patterns detected
Binary-Artifacts🟢 10no binaries found in the repo
CII-Best-Practices⚠️ 0no effort to earn an OpenSSF best practices badge detected
Token-Permissions⚠️ 0detected GitHub workflow tokens with excessive permissions
Fuzzing⚠️ 0project is not fuzzed
License🟢 10license file detected
Packaging⚠️ -1packaging workflow not detected
Pinned-Dependencies🟢 3dependency not pinned by hash detected -- score normalized to 3
Signed-Releases⚠️ -1no releases found
Security-Policy🟢 9security policy file detected
Branch-Protection🟢 6branch protection is not maximal on development and all release branches
Vulnerabilities🟢 73 existing vulnerabilities detected
SAST🟢 8SAST tool detected but not run on all commits
actions/actions/dependency-review-action 4.*.* 🟢 7.6
Details
CheckScoreReason
Maintained🟢 1026 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 10
Packaging⚠️ -1packaging workflow not detected
Dangerous-Workflow🟢 10no dangerous workflow patterns detected
Security-Policy🟢 9security policy file detected
Binary-Artifacts🟢 10no binaries found in the repo
Code-Review🟢 10all changesets reviewed
Token-Permissions🟢 9detected GitHub workflow tokens with excessive permissions
CII-Best-Practices⚠️ 0no effort to earn an OpenSSF best practices badge detected
Pinned-Dependencies⚠️ 1dependency not pinned by hash detected -- score normalized to 1
License🟢 10license file detected
Fuzzing⚠️ 0project is not fuzzed
Signed-Releases⚠️ -1no releases found
Branch-Protection🟢 6branch protection is not maximal on development and all release branches
Vulnerabilities🟢 64 existing vulnerabilities detected
SAST🟢 10SAST tool is run on all commits

Scanned Files

  • .github/workflows/dependency-review.yml

Copy link
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

Adds repository-level developer/CI security tooling to help catch secrets and vulnerabilities earlier in the PR workflow.

Changes:

  • Introduces a .pre-commit-config.yaml with gitleaks + formatting/lint hooks.
  • Adds a GitHub Actions Dependency Review workflow to block risky dependency changes.
  • Adds a GitHub Actions CodeQL workflow for Python static analysis.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.

File Description
.pre-commit-config.yaml Adds pre-commit hooks (gitleaks + whitespace + Python formatting/linting).
.github/workflows/dependency-review.yml Adds Dependency Review action to gate PR dependency changes.
.github/workflows/codeql.yml Adds scheduled + PR/push CodeQL analysis for Python.

Comment on lines 28 to 45
# Python specific
- repo: https://github.com/psf/black
rev: 24.4.2
hooks:
- id: black
language_version: python3

- repo: https://github.com/pycqa/isort
rev: 5.13.2
hooks:
- id: isort
args: ["--profile", "black"]

- repo: https://github.com/pycqa/flake8
rev: 7.0.0
hooks:
- id: flake8
args: [--max-line-length=120]
Copy link

Copilot AI Feb 10, 2026

Choose a reason for hiding this comment

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

The repo’s CI standardizes on Ruff for both linting and formatting (including line-length 100). Adding Black/Isort/Flake8 hooks here will likely produce different results locally (e.g., Black’s default line length 88 and Flake8 set to 120) than what CI enforces, causing noisy diffs and inconsistent failures. Consider replacing these Python hooks with Ruff + Ruff-format pre-commit hooks (or configure them to exactly match the existing Ruff settings).

Copilot uses AI. Check for mistakes.
with:
fail-on-severity: high
comment-summary-in-pr: always
deny-licenses: GPL-3.0, AGPL-3.0
Copy link

Copilot AI Feb 10, 2026

Choose a reason for hiding this comment

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

deny-licenses expects SPDX license identifiers; GPL-3.0 and AGPL-3.0 are not valid SPDX IDs (e.g., use GPL-3.0-only / AGPL-3.0-only or the -or-later variants). With the current values the dependency review may not block the intended licenses.

Suggested change
deny-licenses: GPL-3.0, AGPL-3.0
deny-licenses: GPL-3.0-only, AGPL-3.0-only

Copilot uses AI. Check for mistakes.
Copilot AI review requested due to automatic review settings February 10, 2026 05:12
@rahuldevikar761 rahuldevikar761 force-pushed the users/radevika/add-security-workflows branch from a3d3169 to bf83d08 Compare February 10, 2026 05:12
Copy link
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

Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.

Comment on lines +29 to +35
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.4.4
hooks:
- id: ruff
args: [--fix, --line-length=100]
- id: ruff-format
args: [--line-length=100]
Copy link

Copilot AI Feb 10, 2026

Choose a reason for hiding this comment

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

The ruff-pre-commit hook is pinned to v0.4.4, but the workspace’s locked Ruff version is 0.15.0 (see uv.lock). This large version mismatch can cause pre-commit to format/lint differently than CI (uv run ... ruff). Please bump the hook rev to match the locked Ruff version (or otherwise align the versions) so developers see the same results locally and in CI.

Copilot uses AI. Check for mistakes.

on:
pull_request:
branches: [main]
Copy link

Copilot AI Feb 10, 2026

Choose a reason for hiding this comment

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

This workflow only runs for PRs targeting main, but the repo’s CI also targets release/* branches. If release PRs are expected, dependency review won’t run there, which weakens the intended security gate. Consider including release/* in the on.pull_request.branches list (or removing the branch filter).

Suggested change
branches: [main]
branches: [main, release/*]

Copilot uses AI. Check for mistakes.
Comment on lines +1 to +3
# Dependency Review - blocks PRs that introduce known-vulnerable dependencies
name: Dependency Review

Copy link

Copilot AI Feb 10, 2026

Choose a reason for hiding this comment

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

The PR title mentions adding CodeQL, but this change set only adds pre-commit configuration and a dependency-review workflow—no CodeQL workflow/config is included. Please either add the intended CodeQL setup or adjust the PR title/description to match what’s actually being introduced.

Copilot uses AI. Check for mistakes.
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.

3 participants