-
Notifications
You must be signed in to change notification settings - Fork 55
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
Fixes - warning, changed github token to GIT_ACTIONS_BOT_PAT_CLASSIC #1019
Conversation
WalkthroughThis pull request updates two GitHub Actions workflow files. One change ensures that the static analysis workflow handles file path arguments correctly by quoting the variable, while the other updates the security alerts review workflow to use a different personal access token for multiple API calls. No modifications were made to exported or public entities. Changes
Possibly related PRs
Suggested reviewers
Warning Review ran into problems🔥 ProblemsErrors were encountered while retrieving linked issues. Errors (1)
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? 🪧 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 (
|
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/securityAlertsReview.yml (1)
271-271
: Log Message Addition & YAML FormattingThe newly added log message (
echo "✅ No blocking security issues found. The workflow will pass successfully."
) clearly indicates the successful state when no issues are detected. However, YAMLlint reports a missing newline at the end of the file. Please add a newline after the last line to comply with YAML formatting best practices.Suggested diff:
- echo "✅ No blocking security issues found. The workflow will pass successfully." + echo "✅ No blocking security issues found. The workflow will pass successfully." +🧰 Tools
🪛 YAMLlint (1.35.1)
[error] 271-271: no new line character at the end of file
(new-line-at-end-of-file)
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (2)
.github/workflows/olympixStaticAnalysis.yml
(1 hunks).github/workflows/securityAlertsReview.yml
(7 hunks)
✅ Files skipped from review due to trivial changes (1)
- .github/workflows/olympixStaticAnalysis.yml
🧰 Additional context used
🪛 YAMLlint (1.35.1)
.github/workflows/securityAlertsReview.yml
[error] 271-271: no new line character at the end of file
(new-line-at-end-of-file)
⏰ Context from checks skipped due to timeout of 90000ms (1)
- GitHub Check: run-unit-tests
🔇 Additional comments (6)
.github/workflows/securityAlertsReview.yml (6)
29-29
: Update GitHub Token in Analysis Check StepThe
GITHUB_TOKEN
environment variable is now set to${{ secrets.GIT_ACTIONS_BOT_PAT_CLASSIC }}
for the Olympix Static Analysis check. This change aligns with the PR objective and ensures that a token with appropriate permissions is consistently used. Please verify that this token has scopes suitable for accessing workflow run details.
61-61
: Token Update in PR Number ValidationIn the "Validate and set PR Number" step, the GitHub token has been updated to
${{ secrets.GIT_ACTIONS_BOT_PAT_CLASSIC }}
. This ensures secure authorization when fetching the PR details. Confirm that downstream steps expecting the previous token are not adversely affected.
74-74
: Token Update for Fetching Security AlertsThe environment variable change to use
${{ secrets.GIT_ACTIONS_BOT_PAT_CLASSIC }}
in the "Fetch Security Alerts for PR" step is consistent. Make sure that this token’s permissions and rate limits are sufficient for the API calls being performed (especially for fetching code-scanning alerts).
121-121
: Token Update in Finding Existing PR CommentThe
GITHUB_TOKEN
is updated here as well to${{ secrets.GIT_ACTIONS_BOT_PAT_CLASSIC }}
. This ensures that the API call for retrieving PR comments is properly authenticated. Please double-check that the new token permissions allow reading issue comments.
137-137
: Token Update in Posting/Updating PR CommentIn the "Post or Update PR Comment" step, the updated token
${{ secrets.GIT_ACTIONS_BOT_PAT_CLASSIC }}
is used. Verify that the token has adequate privileges to post and modify comments, and that JSON escaping within the comment body remains correctly handled.
238-238
: Token Update for Reverting PR to DraftThe token update in the "Check if Action Should Fail And Revert To Draft" step to
${{ secrets.GIT_ACTIONS_BOT_PAT_CLASSIC }}
is consistent with the other steps. Ensure that this token provides the necessary permissions to perform mutations (e.g., converting a PR to draft) via the GraphQL endpoint.
Which Jira task belongs to this PR?
Why did I implement it this way?
Previously in the securityAlertsReview.yml there was a warning

so that was fixed.
securityAlertsReview.yml was using invalid github token leading to 403 error while posting a comment
Checklist before requesting a review
Checklist for reviewer (DO NOT DEPLOY and contracts BEFORE CHECKING THIS!!!)