Skip to content

ci: stop the E2E image builds from printing the GitHub event payload - #977

Merged
EliMoshkovich merged 2 commits into
masterfrom
eli/per-17677-opal-ci-no-event-payload
Oct 22, 2026
Merged

EliMoshkovich merged 2 commits into
masterfrom
eli/per-17677-opal-ci-no-event-payload

Conversation

@EliMoshkovich

@EliMoshkovich EliMoshkovich commented Oct 22, 2026 •

Copy link
Copy Markdown
Contributor

Linear: PER-17677

Why

docker/build-push-action prints the build's metadata file in a Metadata log group. With the docker-container builder that setup-buildx-action creates, buildx (>= 0.30) adds the GitHub event payload to the build's provenance and writes that provenance into the file even in its default min mode. Its invocation.environment then holds github_event_payload, the whole triggering event. On a pull_request run that's the PR's title and description from the event that triggered the run (a re-run reuses it), so every E2E Tests and E2E Tests (Alpine) job copies the PR description into this repo's public logs. Editing the description later doesn't remove it from there.

What

BUILDX_METADATA_PROVENANCE: disabled in a workflow-level env: block, so a build job added to this workflow later is covered too. The build and ci jobs don't run buildx, so it changes nothing for them. Their build-push-action@v2 steps only load the images locally for the tests. v2 has no provenance input and builds no attestation, so the variable is the only change needed.

on_release.yml is unchanged. Whether release images carry provenance is a separate decision.

Verification

  • The repo's pre-commit hooks pass on tests.yml.
  • ci: stop the PR image builds from printing the GitHub event payload (PER-17677) PDP#420 made the same change in PDP's image builds. Its run's log went from 6 github_event_payload occurrences to 0.
  • First commit (variable set per job): Tests run 39835456599 passed. Its E2E Tests and E2E Tests (Alpine) logs each still print two Metadata groups, now with 0 buildx.build.provenance and 0 github_event_payload.
  • Current head (ad20692, variable at workflow level): both E2E logs have no github_event_payload.

🤖 Generated with Claude Code

…(PER-17677)

buildx writes min-mode provenance into the build's metadata file, and
build-push-action prints that file. Its invocation environment holds the whole
event payload, which on a pull_request run is the PR title and description
as they were when the run started. BUILDX_METADATA_PROVENANCE=disabled turns
it off for the two E2E jobs, which build images only to load them locally.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Copilot AI balanced review requested due to automatic review settings October 22, 2026 18:54
@linear-code

linear-code Bot commented Oct 22, 2026

Copy link
Copy Markdown

PER-17677

@netlify

netlify Bot commented Oct 22, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for opal-docs canceled.

Name Link
🔨 Latest commit ad20692
🔍 Latest deploy log https://app.netlify.com/projects/opal-docs/deploys/6ada67ed790db665adf03305

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@zeevmoney zeevmoney left a comment

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.

Approved — no CRITICAL or HIGH issues found.

Non-blocking:

  • LOW .github/workflows/tests.yml:101 — set the variable once at workflow level so new build jobs are covered
  • LOW .github/workflows/tests.yml:105 — comment: the payload is the triggering event's (re-runs reuse it), and only the docker-container builder adds it

Details are in the inline comments on each line.

Comment thread .github/workflows/tests.yml Outdated
Comment thread .github/workflows/tests.yml Outdated
…accurate comment

A build job added later is covered too. The comment names the docker-container
builder (buildx >= 0.30) that adds the payload, and says it is the triggering
event's, which a re-run reuses.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Copilot AI balanced review requested due to automatic review settings October 22, 2026 19:45

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@EliMoshkovich
EliMoshkovich merged commit 70a3c59 into master Oct 22, 2026
15 of 16 checks passed
@EliMoshkovich
EliMoshkovich deleted the eli/per-17677-opal-ci-no-event-payload branch October 22, 2026 20:14
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.

3 participants