-
Notifications
You must be signed in to change notification settings - Fork 13
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
House keeping #64
House keeping #64
Conversation
WalkthroughThe pull request introduces changes to three files: two GitHub Actions workflow files and the project's In the 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/publish-central.yml (1)
35-35
: Good security practice: Using GitHub variables for GPG key fingerprintThe GPG key fingerprint is now properly managed through GitHub variables instead of being hardcoded in the pom.xml.
However, there's a minor formatting issue: add a newline at the end of the file.
MAVEN_GPG_KEY_FINGERPRINT: ${{ vars.RELEASES_GPG_KEY_FINGERPRINT }} +
🧰 Tools
🪛 yamllint (1.35.1)
[error] 35-35: 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 (3)
.github/workflows/publish-central.yml
(1 hunks).github/workflows/publish-github.yml
(1 hunks)pom.xml
(1 hunks)
🧰 Additional context used
🪛 yamllint (1.35.1)
.github/workflows/publish-central.yml
[error] 35-35: no new line character at the end of file
(new-line-at-end-of-file)
⏰ Context from checks skipped due to timeout of 90000ms (2)
- GitHub Check: Analyse
- GitHub Check: Build and Test
🔇 Additional comments (3)
pom.xml (2)
266-266
: Good security practice: Using environment variable for NVD API keyThis change prevents the API key from being exposed in logs or configuration files by using an environment variable instead of direct value.
Line range hint
315-332
: Verify GPG signing configurationThe hardcoded key fingerprint has been removed from the maven-gpg-plugin configuration. Ensure that the
MAVEN_GPG_KEY_FINGERPRINT
environment variable is properly set in both GitHub workflows.Run this script to verify the GPG plugin configuration:
✅ Verification successful
GPG signing configuration verified successfully ✅
The
MAVEN_GPG_KEY_FINGERPRINT
environment variable is properly configured in both the GitHub Packages and Maven Central publishing workflows, sourced fromvars.RELEASES_GPG_KEY_FINGERPRINT
.🏁 Scripts executed
The following scripts were executed for the analysis:
Script:
#!/bin/bash # Description: Verify GPG plugin configuration and environment variables # Check if both workflows have the required environment variable echo "Checking GPG environment variables in workflows..." rg -l "MAVEN_GPG_KEY_FINGERPRINT: \${{ vars.RELEASES_GPG_KEY_FINGERPRINT }}" .github/workflows/Length of output: 386
Script:
#!/bin/bash # Search for GPG-related environment variables with escaped special characters echo "Checking workflow files for GPG configuration..." rg "MAVEN_GPG|RELEASES_GPG" .github/workflows/ # List and show content of workflow files echo -e "\nListing workflow files:" fd . .github/workflows/ -e yml -e yaml --exec cat {}Length of output: 7633
.github/workflows/publish-github.yml (1)
26-26
: Good practice: Consistent configuration across workflowsThe GPG key fingerprint configuration is consistently implemented across both deployment workflows using GitHub variables.
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.
The fingerprint is used intentionally, so the right key is used if there are multiple.
Does the added env var serve the same purpose? In that case I am fine with the change.
Yes |
This PR changes two minor things in the project: