-
Notifications
You must be signed in to change notification settings - Fork 45
Actions update for CodeQL and java #188
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weβll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
WalkthroughThe changes update three GitHub Actions workflow files to use newer versions of their respective actions. The Changes
Possibly related PRs
Suggested reviewers
Poem
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. πͺ§ TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
@drtechie @Sneha6003 can you approve the workflow to check if they pass or not? Is the CodeQL supposed to be behind an approval? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 2
π Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
π Files selected for processing (2)
.github/workflows/build-on-pull-request.yml
(1 hunks).github/workflows/sast.yml
(1 hunks)
π§° Additional context used
πͺ YAMLlint (1.35.1)
.github/workflows/sast.yml
[warning] 45-45: wrong indentation: expected 8 but found 10
(indentation)
[error] 47-47: trailing spaces
(trailing-spaces)
π Additional comments (2)
.github/workflows/sast.yml (2)
38-41
: Upgraded CodeQL init action is correctThe transition from
github/codeql-action/init@v2
to@v3
, along with explicitlanguages: ${{ matrix.language }}
, aligns with CodeQL documentation and ensures the correct languages are scanned.
51-55
: Updated CodeQL analyze action is correctThe upgrade to
github/codeql-action/analyze@v3
preserves the intendedcategory
input. No further changes are necessary.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 0
π§Ή Nitpick comments (1)
.github/workflows/sast.yml (1)
30-32
: Optional Improvement: Add full clone for CodeQL
For optimal CodeQL analysis (including incremental builds and more accurate blame tracing), itβs recommended to perform a full checkout. You can addfetch-depth: 0
to the checkout step as shown:- name: Checkout code - uses: actions/checkout@v3 - with: + uses: actions/checkout@v3 + with: + fetch-depth: 0 ref: ${{ github.event.pull_request.head.ref }} repository: ${{ github.event.pull_request.head.repo.full_name }}π§° Tools
πͺ actionlint (1.7.4)
31-31: the runner of "actions/checkout@v3" action is too old to run on GitHub Actions. update the action's version to fix this issue
(action)
π Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
π Files selected for processing (3)
.github/workflows/package.yml
(1 hunks).github/workflows/sast.yml
(2 hunks)README.md
(1 hunks)
β Files skipped from review due to trivial changes (1)
- README.md
π§ Files skipped from review as they are similar to previous changes (1)
- .github/workflows/package.yml
π§° Additional context used
πͺ actionlint (1.7.4)
.github/workflows/sast.yml
31-31: the runner of "actions/checkout@v3" action is too old to run on GitHub Actions. update the action's version to fix this issue
(action)
π Additional comments (7)
.github/workflows/sast.yml (7)
7-7
: Approve: Excludingtarget/**
from CodeQL scan
Ignoring thetarget/
directory under thepush
trigger reduces noise and speeds up analysis. This pattern is consistent with other workflows in the repo.
12-12
: Approve: Excludingtarget/**
on pull requests
Matching thepush
configuration, skipping build artifacts in PR runs prevents unnecessary scanning.
28-28
: Skip: Blank line insertion
This is a formatting-only change (empty line) and doesnβt impact the workflowβs behavior.
36-39
: Approve: Upgraded CodeQL init action
Switching togithub/codeql-action/init@v3
and explicitly passinglanguages: ${{ matrix.language }}
aligns with the latest CodeQL setup requirements.
41-46
: Approve: Updated Java setup to actions/setup-java@v4
Upgrading toactions/setup-java@v4
withjava-version: 17
and thetemurin
distribution ensures a supported JDK and matches other CI workflows in the repo.
47-49
: Skip: Build step formatting
This Maven build step remains functionally identical; only minor whitespace or indentation changed.
50-53
: Approve: Upgraded CodeQL analyze action
Updating togithub/codeql-action/analyze@v3
withcategory: "/language:${{ matrix.language }}"
follows the latest action recommendations and preserves language-specific grouping.
π Description
JIRA ID: issue link
Updated the depreceated version of codeql and java in github action sast.yml file for correct check passes.
β Type of Change
βΉοΈ Additional Information
Please describe how the changes were tested, and include any relevant screenshots, logs, or other information that provides additional context.
Summary by CodeRabbit