Repository navigation
devx: PII scan reads committed content, not the worktree (follow-up to #645) #650
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
Changes from all commits
036739a
a002eab
9509d40
ffaa89c
7466a62
919cdeb
d4bb049
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -277,6 +277,23 @@ jobs: | |
| echo "sha=$sha" >> "$GITHUB_OUTPUT" | ||
| echo "### NoteCraft $TAG (\`$(git rev-parse --short "$sha")\`)" >>"$GITHUB_STEP_SUMMARY" | ||
|
|
||
| i18n-audit: | ||
| name: i18n audit (warning only) | ||
| # No `needs`: this runs every night, even when there is no release, | ||
| # so missing locale entries surface within a day of landing. | ||
| # `continue-on-error` keeps it a warning: the job shows orange when | ||
| # the audit fails, but the run stays green and no release job | ||
| # depends on this one. | ||
| continue-on-error: true | ||
| runs-on: ubuntu-24.04 | ||
| timeout-minutes: 30 | ||
| steps: | ||
| - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 | ||
| - name: Install Rust | ||
| run: rustup install | ||
| - name: i18n audit | ||
| run: cargo xtask i18n-audit | ||
|
Comment on lines
+294
to
+295
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Warn when locale entries are missing. If a locale has untranslated entries but the source is otherwise clean,
|
||
|
|
||
| test: | ||
| name: Build and test the tagged commit | ||
| needs: prepare | ||
|
|
||
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.
Use the pull request’s target as its scan base.
The workflow accepts pull requests to branches other than
main. If such a PR changes a clean file to match an SSN-containing version onmain, the diff againstorigin/mainomits that file, so the scanner passes it without inspection. Use the PR’s base commit for PR runs. (raw.githubusercontent.com)Push-to-main runs scan nothing.
On a push to
main, the pushed commit is bothHEADandorigin/main. The scanner'sgit diff origin/main HEADis empty and exits 0 with "No files to scan". An SSN added by the push is not checked. Pull requests and merge-queue runs are scanned againstorigin/main, so they are not affected. The gap applies to direct pushes tomainthat bypass the merge queue.Use the push event's previous commit (
github.event.before) as the base for push events. Handle a missing previous commit, such as a branch creation or a force push, explicitly. Do not let the scan silently pass in that case.