feat(setup-trivy)!: automatically determine arch #14

Merged
t.behrendt merged 4 commits from feat-automatically-select-correct-arch into main 2025-11-08 19:22:31 +01:00
Owner

Mapping x86_64 to "64bit" and aarch64 to "ARM64" as this is how Trivy names their releases.
Adjusted CICD to test-run both amd64 and arm64 versions.

Mapping x86_64 to "64bit" and aarch64 to "ARM64" as this is how Trivy names their releases. Adjusted CICD to test-run both amd64 and arm64 versions.
t.behrendt added 1 commit 2025-11-08 18:45:05 +01:00
t.behrendt force-pushed feat-automatically-select-correct-arch from 1a1a356184 to d33efe2071 2025-11-08 18:46:38 +01:00 Compare
t.behrendt force-pushed feat-automatically-select-correct-arch from cba0b6f2d3 to f26a0c4a9a 2025-11-08 18:50:49 +01:00 Compare
t.behrendt requested review from branch-buddy 2025-11-08 18:52:45 +01:00
branch-buddy approved these changes 2025-11-08 18:57:27 +01:00
Dismissed
branch-buddy left a comment
Collaborator

The PR aims to automatically determine architecture, but the implementation has a critical issue. The arch detection script maps x86_64 to '64bit' and aarch64 to 'ARM64', which does not match Trivy's expected architecture names (amd64/arm64). This will cause the curl command to fail as the tarball name will be incorrect.

The PR aims to automatically determine architecture, but the implementation has a critical issue. The arch detection script maps x86_64 to '64bit' and aarch64 to 'ARM64', which does not match Trivy's expected architecture names (amd64/arm64). This will cause the curl command to fail as the tarball name will be incorrect.
Outdated
Collaborator

Remove the architecture input from the action.yaml inputs section as it's no longer needed.

Remove the `architecture` input from the action.yaml inputs section as it's no longer needed.
Collaborator

Fix the README.md table formatting to ensure consistent column alignment.

Fix the README.md table formatting to ensure consistent column alignment.
Collaborator

Verify that the CI matrix correctly handles both architectures without relying on the removed input.

Verify that the CI matrix correctly handles both architectures without relying on the removed input.
Collaborator

Consider improving the README.md table formatting for better alignment

Consider improving the README.md table formatting for better alignment
Collaborator

Verify if the architecture detection logic handles all possible system architecture identifiers

Verify if the architecture detection logic handles all possible system architecture identifiers
t.behrendt marked this conversation as resolved
t.behrendt removed review request for branch-buddy 2025-11-08 19:09:31 +01:00
t.behrendt requested review from branch-buddy 2025-11-08 19:12:21 +01:00
branch-buddy approved these changes 2025-11-08 19:13:20 +01:00
Dismissed
branch-buddy left a comment
Collaborator

The PR introduces automatic architecture detection, but the architecture input is still present in the action.yaml inputs section, which conflicts with the goal of automatic determination. Additionally, the README.md table formatting shows inconsistent column alignment.

The PR introduces automatic architecture detection, but the `architecture` input is still present in the action.yaml inputs section, which conflicts with the goal of automatic determination. Additionally, the README.md table formatting shows inconsistent column alignment.
Outdated
Collaborator

Remove the architecture input from the action.yaml inputs section as it's no longer needed.

Remove the `architecture` input from the action.yaml inputs section as it's no longer needed.
Collaborator

Fix the README.md table formatting to ensure consistent column alignment.

Fix the README.md table formatting to ensure consistent column alignment.
Collaborator

Verify that the CI matrix correctly handles both architectures without relying on the removed input.

Verify that the CI matrix correctly handles both architectures without relying on the removed input.
Collaborator

Consider improving the README.md table formatting for better alignment

Consider improving the README.md table formatting for better alignment
Collaborator

Verify if the architecture detection logic handles all possible system architecture identifiers

Verify if the architecture detection logic handles all possible system architecture identifiers
t.behrendt marked this conversation as resolved
branch-buddy approved these changes 2025-11-08 19:14:50 +01:00
Dismissed
branch-buddy left a comment
Collaborator

The changes align with the PR title and description. The diff correctly implements automatic architecture detection by mapping system architectures to Trivy's naming convention and adjusts CI/CD to test both amd64 and arm64. The code appears functionally correct.

The changes align with the PR title and description. The diff correctly implements automatic architecture detection by mapping system architectures to Trivy's naming convention and adjusts CI/CD to test both amd64 and arm64. The code appears functionally correct.
Outdated
Collaborator

Remove the architecture input from the action.yaml inputs section as it's no longer needed.

Remove the `architecture` input from the action.yaml inputs section as it's no longer needed.
Collaborator

Fix the README.md table formatting to ensure consistent column alignment.

Fix the README.md table formatting to ensure consistent column alignment.
Collaborator

Verify that the CI matrix correctly handles both architectures without relying on the removed input.

Verify that the CI matrix correctly handles both architectures without relying on the removed input.
Collaborator

Consider improving the README.md table formatting for better alignment

Consider improving the README.md table formatting for better alignment
Collaborator

Verify if the architecture detection logic handles all possible system architecture identifiers

Verify if the architecture detection logic handles all possible system architecture identifiers
t.behrendt marked this conversation as resolved
t.behrendt added 1 commit 2025-11-08 19:17:17 +01:00
fix docs
CI / Test Setup Trivy amd64 (pull_request) Successful in 8s
CI / Test Setup DB (pull_request) Successful in 13s
CI / Test Setup Trivy arm64 (pull_request) Successful in 26s
328e630b07
t.behrendt dismissed branch-buddy's review 2025-11-08 19:17:18 +01:00
Reason:

New commits pushed, approval review dismissed automatically according to repository settings

t.behrendt removed review request for branch-buddy 2025-11-08 19:18:06 +01:00
branch-buddy approved these changes 2025-11-08 19:20:20 +01:00
branch-buddy left a comment
Collaborator

The changes align with the PR title and description. The CI configuration now supports both amd64 and arm64 architectures, and the setup-trivy action automatically detects architecture via uname -m. No obvious issues found.

The changes align with the PR title and description. The CI configuration now supports both amd64 and arm64 architectures, and the setup-trivy action automatically detects architecture via uname -m. No obvious issues found.
t.behrendt merged commit f7ecf84dfe into main 2025-11-08 19:22:31 +01:00
t.behrendt deleted branch feat-automatically-select-correct-arch 2025-11-08 19:22:32 +01:00
Sign in to join this conversation.
No Reviewers
2 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: t.behrendt/sec-actions#14