Skip to content

scorecard: Update to v5.4.0#7

Merged
cgwalters merged 1 commit intobootc-dev:mainfrom
henrywang:update-scorecard
Jan 16, 2026
Merged

scorecard: Update to v5.4.0#7
cgwalters merged 1 commit intobootc-dev:mainfrom
henrywang:update-scorecard

Conversation

@henrywang
Copy link
Contributor

Since v5.3.0, scorecard skips dangling symlinks and detects symlink path traversal when run on local files

That resolved bootc repo error:
Error: check runtime error: Binary-Artifacts: internal error: error during ListFiles: error walking the path ".": stat baseimage/base/ostree: no such file or directory

https://github.com/bootc-dev/bootc/actions/runs/21049699430/job/60560609756?pr=1920

Since v5.3.0, scorecard skips dangling symlinks and detects
symlink path traversal when run on local files

That resolved bootc repo error:
Error: check runtime error: Binary-Artifacts: internal error:
error during ListFiles: error walking the path ".": stat
baseimage/base/ostree: no such file or directory

Signed-off-by: Xiaofeng Wang <henrywangxf@me.com>
Copy link

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request updates the OpenSSF Scorecard to v5.4.0. The change is correct and addresses a bug as described in the PR description. I've added a suggestion to also improve architecture support in the action, making it compatible with ARM64 runners. Additionally, please note that the local testing instructions in the file's header comment are now outdated and could be updated in a follow-up to avoid confusion.

Comment on lines +44 to 45
VERSION=v5.4.0
ARCH=$(uname -m | sed 's/x86_64/amd64/')

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

While updating the version, it's a good opportunity to also add support for ARM64 architecture. The current script only handles x86_64 and will fail on aarch64 runners. Scorecard provides arm64 artifacts for Linux, so we can easily add support for it.

        VERSION=v5.4.0
        ARCH=$(uname -m | sed -e 's/x86_64/amd64/' -e 's/aarch64/arm64/')

Copy link
Contributor

@cgwalters cgwalters left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In theory renovate should have picked this up...

@cgwalters cgwalters merged commit ad8fabd into bootc-dev:main Jan 16, 2026
1 check passed
@henrywang henrywang deleted the update-scorecard branch January 16, 2026 13:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants