Skip to content

fix(ci): approve branding assets and keep privacy scan exit code clean - #4

Merged
autoantohaki merged 1 commit into
mainfrom
fix/ci-privacy-scan
Oct 22, 2026
Merged

autoantohaki merged 1 commit into
mainfrom
fix/ci-privacy-scan

Conversation

@autoantohaki

Copy link
Copy Markdown
Member

Requested by mau

Before: CI on main had never passed. The privacy scan rejected docs/assets/impossible-voice-scene.gif and docs/assets/social-preview.png as "unexpected binary content", because the branding commit added them without approving their hashes. Even when the scan found nothing, the step still failed: the script ended with the exit code of git config --get user.name, which is 1 on CI runners where no user name is set.

After: both branding assets are approved by SHA-256, as the header image already was, and the script exits 0 explicitly after a passing scan. Any other binary file, or a changed asset, still fails the scan.

How: two entries were added to $approvedBinaryHashes, and an exit 0 follows the success message. This PR unblocks CI for #1, #2 and #3.

The branding commit added docs/assets/impossible-voice-scene.gif and
social-preview.png without approving their hashes, so the privacy scan
rejected them. The scan also ended with the exit code of an unset
'git config --get user.name' on CI, failing the step after a passing scan.
Approve both assets by hash and exit 0 explicitly on success.
@autoantohaki
autoantohaki merged commit b0dfd55 into main Oct 22, 2026
6 checks passed
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.

1 participant