-
Notifications
You must be signed in to change notification settings - Fork 199
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
fix: image scan issue with github branch name #2896
base: dev
Are you sure you want to change the base?
Conversation
|
WalkthroughThe pull request modifies three GitHub workflow files ( Changes
Sequence DiagramsequenceDiagram
participant Workflow
participant DockerBuild
participant ImageScanner
Workflow->>DockerBuild: Build Docker image
DockerBuild-->>Workflow: Generate image with commit SHA tag
Workflow->>ImageScanner: Scan image using commit SHA
ImageScanner-->>Workflow: Return scan results
Possibly related PRs
Suggested reviewers
Poem
Tip CodeRabbit's docstrings feature is now available as part of our Early Access Program! Simply use the command 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
🔭 Outside diff range comments (1)
.github/workflows/publish-kyb-app.yml (1)
Line range hint
31-35
: Remove duplicate Container registry login stepThe workflow contains two identical "Log in to the Container registry" steps. The second one is redundant and can be removed.
- - name: Log in to the Container registry - uses: docker/login-action@65b78e6e13532edd9afa3aa52ac7964289d1a9c1 - with: - registry: ${{ env.REGISTRY }} - username: ${{ github.actor }} - password: ${{ secrets.GITHUB_TOKEN }}Also applies to: 61-65
🧹 Nitpick comments (2)
.github/workflows/publish-workflows-dashboard.yml (1)
108-108
: Fix spacing inconsistency in image-refThere's an inconsistent spacing after
github.sha
compared to other workflow files.- image-ref: '${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ github.sha}}' + image-ref: '${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ github.sha }}'.github/workflows/publish-kyb-app.yml (1)
115-115
: Fix spacing inconsistency in image-refThere's an inconsistent spacing after
github.sha
compared to the backoffice workflow.- image-ref: '${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ github.sha}}' + image-ref: '${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ github.sha }}'
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (3)
.github/workflows/publish-backoffice.yml
(3 hunks).github/workflows/publish-kyb-app.yml
(3 hunks).github/workflows/publish-workflows-dashboard.yml
(3 hunks)
🔇 Additional comments (1)
.github/workflows/publish-backoffice.yml (1)
67-68
: LGTM! Improved image tagging and scanning stability
The changes enhance the Docker image management by:
- Adding SHA-based tags for both production and non-production builds
- Using commit SHA for image scanning instead of branch names, which provides a more stable and unique reference
This improvement helps avoid potential issues with special characters in branch names and ensures consistent image scanning.
Also applies to: 90-91, 109-109
Summary by CodeRabbit
New Features
Bug Fixes