Skip to content

build: validate PR metadata before use in coverage publish workflow#12343

Merged
kgryte merged 1 commit into
developfrom
philipp/harden-publish-coverage-pr
May 29, 2026
Merged

build: validate PR metadata before use in coverage publish workflow#12343
kgryte merged 1 commit into
developfrom
philipp/harden-publish-coverage-pr

Conversation

@Planeshifter
Copy link
Copy Markdown
Member

Description

What is the purpose of this pull request?

This pull request:

  • validates the PR number from the downloaded pr-metadata artifact as a positive integer before use.
  • consumes the report body and PR number as data (via the artifact file and an environment variable) instead of interpolating artifact-derived values directly into the github-script and shell steps.
  • quotes variables in the coverage artifact processing loop.

Related Issues

Does this pull request have any related issues?

No.

Questions

Any questions for reviewers of this pull request?

No.

Other

Any other information relevant to this pull request? This may include screenshots, references, and/or implementation notes.

No.

Checklist

Please ensure the following tasks are completed before submitting this pull request.

AI Assistance

When authoring the changes proposed in this PR, did you use any kind of AI assistance?

  • Yes
  • No

If you answered "yes" above, how did you use AI assistance?

  • Code generation (e.g., when writing an implementation or fixing a bug)
  • Test/benchmark generation
  • Documentation (including examples)
  • Research and understanding

Disclosure

This PR was authored with Claude Code.


@stdlib-js/reviewers

@Planeshifter Planeshifter requested a review from a team May 29, 2026 06:57
@stdlib-bot stdlib-bot added the Needs Review A pull request which needs code review. label May 29, 2026
Validate the PR number as a positive integer and consume the report
body and PR number as data rather than interpolating artifact-derived
values into the `github-script` and shell steps. Also quote the
coverage artifact processing loop.

---
type: pre_commit_static_analysis_report
description: Results of running static analysis checks when committing changes.
report:
  - task: lint_filenames
    status: passed
  - task: lint_editorconfig
    status: passed
  - task: lint_markdown
    status: na
  - task: lint_package_json
    status: na
  - task: lint_repl_help
    status: na
  - task: lint_javascript_src
    status: na
  - task: lint_javascript_cli
    status: na
  - task: lint_javascript_examples
    status: na
  - task: lint_javascript_tests
    status: na
  - task: lint_javascript_benchmarks
    status: na
  - task: lint_python
    status: na
  - task: lint_r
    status: na
  - task: lint_c_src
    status: na
  - task: lint_c_examples
    status: na
  - task: lint_c_benchmarks
    status: na
  - task: lint_c_tests_fixtures
    status: na
  - task: lint_shell
    status: na
  - task: lint_typescript_declarations
    status: passed
  - task: lint_typescript_tests
    status: na
  - task: lint_license_headers
    status: passed
---
@Planeshifter Planeshifter force-pushed the philipp/harden-publish-coverage-pr branch from 8eff7b1 to 0b92157 Compare May 29, 2026 06:59
@Planeshifter Planeshifter changed the title chore: validate PR metadata before use in coverage publish workflow build: validate PR metadata before use in coverage publish workflow May 29, 2026
@Planeshifter Planeshifter requested a review from kgryte May 29, 2026 07:00
echo $coverage >> $(dirname $file)/coverage.ndjson
done
while IFS= read -r -d '' file; do
file="${file//artifacts/www-test-code-coverage}"
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Is the double slash after file intentional?

@kgryte kgryte added CI Issue or pull request specific to continuous integration environments. and removed Needs Review A pull request which needs code review. labels May 29, 2026
@kgryte kgryte merged commit 489a111 into develop May 29, 2026
32 checks passed
@kgryte kgryte deleted the philipp/harden-publish-coverage-pr branch May 29, 2026 07:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CI Issue or pull request specific to continuous integration environments.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants