Repository navigation
Bump actions/upload-artifact from 4.6.2 to 7.0.0 - #27
Merged
jeremy merged 1 commit intoMar 18, 2026
Merged
Conversation
Bumps [actions/upload-artifact](https://github.com/actions/upload-artifact) from 4.6.2 to 7.0.0. - [Release notes](https://github.com/actions/upload-artifact/releases) - [Commits](actions/upload-artifact@ea165f8...bbbca2d) --- updated-dependencies: - dependency-name: actions/upload-artifact dependency-version: 7.0.0 dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com>
Sensitive Change Detection (shadow mode)This PR modifies control-plane files:
|
jeremy
deleted the
dependabot/github_actions/actions/upload-artifact-7.0.0
branch
March 18, 2026 19:39
jeremy
added a commit
that referenced
this pull request
Aug 21, 2026
ToMarkdown wrote text, code, and link destinations straight into the Markdown it built, so an email could write Markdown of its own. The live case is a double decode: "&#27;[31m" in the HTML is "[31m" once the parser decodes it, and the Markdown renderer decoded it again into a red terminal. A ")" in an href ended the link destination early, and a "```" line inside a <pre> closed the fence. Each of the four contexts now has its own serializer: prose escapes its metacharacters and writes every "&" as "&", which decodes back to "&" under CommonMark and under glamour alike; inline code and fences carry their content verbatim inside delimiters longer than any run the content holds, with the info string limited to a language name; destinations percent-encode what would end them, keep a query string's "&" as the separator it is, and link only http, https, mailto and relative paths. Every context strips C0, C1 and DEL first, so "&\x1f#27;" is looked at as the "" it becomes. Syntax is decided on the line being built rather than on one text node, since "1" and "." arrive separately and are a list marker once they sit side by side. Quote and list nesting stop at sixteen levels: glamour's cost doubles every few quote levels, and a hundred-deep reply chain is a hang. The tests use goldmark as the oracle — what a conformant renderer shows for the Markdown is the literal text and URL the email held — and a fuzz target holds that no control character survives either the Markdown or its rendering.
jeremy
added a commit
that referenced
this pull request
Aug 21, 2026
glamour reads text out of the Markdown source and runs it through html.UnescapeString before styling it — prose, code spans, raw HTML — so "[31m" reached the terminal as a live escape byte however the source spelled it, and CommonMark's "\&" did not help: glamour showed the backslash and decoded the entity anyway. Render now parses the source with glamour's own goldmark configuration and rewrites exactly the spans glamour decodes, writing "&" as "&" there so that the extra decode is the identity. What glamour reads verbatim — code blocks, image alt text, link destinations, autolinks — stays verbatim, so "&" never shows and a query string keeps its "&". Controls are stripped on the way in and quote nesting is bounded, since glamour's cost doubles every few levels of it. On the way out, contain checks that the output is made of SGR, OSC 8 and text: anything else means something got past the source rewrite, and the honest answer is to strip every sequence and lose the styling rather than guess which were ours. It is a last resort, not the guarantee — an injected SGR is byte-for-byte one of ours. OSC 8 is kept only for http, https and mailto; a relative attachment path stays visible text. The per-width renderer cache is capped at eight entries, evicting an arbitrary one past that.
jeremy
added a commit
that referenced
this pull request
Aug 21, 2026
) * Serialize email content per Markdown context ToMarkdown wrote text, code, and link destinations straight into the Markdown it built, so an email could write Markdown of its own. The live case is a double decode: "&#27;[31m" in the HTML is "[31m" once the parser decodes it, and the Markdown renderer decoded it again into a red terminal. A ")" in an href ended the link destination early, and a "```" line inside a <pre> closed the fence. Each of the four contexts now has its own serializer: prose escapes its metacharacters and writes every "&" as "&", which decodes back to "&" under CommonMark and under glamour alike; inline code and fences carry their content verbatim inside delimiters longer than any run the content holds, with the info string limited to a language name; destinations percent-encode what would end them, keep a query string's "&" as the separator it is, and link only http, https, mailto and relative paths. Every context strips C0, C1 and DEL first, so "&\x1f#27;" is looked at as the "" it becomes. Syntax is decided on the line being built rather than on one text node, since "1" and "." arrive separately and are a list marker once they sit side by side. Quote and list nesting stop at sixteen levels: glamour's cost doubles every few quote levels, and a hundred-deep reply chain is a hang. The tests use goldmark as the oracle — what a conformant renderer shows for the Markdown is the literal text and URL the email held — and a fuzz target holds that no control character survives either the Markdown or its rendering. * Neutralize glamour's entity decoding and contain what Render emits glamour reads text out of the Markdown source and runs it through html.UnescapeString before styling it — prose, code spans, raw HTML — so "[31m" reached the terminal as a live escape byte however the source spelled it, and CommonMark's "\&" did not help: glamour showed the backslash and decoded the entity anyway. Render now parses the source with glamour's own goldmark configuration and rewrites exactly the spans glamour decodes, writing "&" as "&" there so that the extra decode is the identity. What glamour reads verbatim — code blocks, image alt text, link destinations, autolinks — stays verbatim, so "&" never shows and a query string keeps its "&". Controls are stripped on the way in and quote nesting is bounded, since glamour's cost doubles every few levels of it. On the way out, contain checks that the output is made of SGR, OSC 8 and text: anything else means something got past the source rewrite, and the honest answer is to strip every sequence and lose the styling rather than guess which were ours. It is a last resort, not the guarantee — an injected SGR is byte-for-byte one of ours. OSC 8 is kept only for http, https and mailto; a relative attachment path stays visible text. The per-width renderer cache is capped at eight entries, evicting an arbitrary one past that. * Strip bidi controls from terminal text and escape C1 controls in JSON terminal.Sanitize removed the escape sequences and the C0 and C1 controls from a sender's name or a filename, and left the bidirectional controls in. They do not move the cursor, but they move what the reader sees: a right-to-left override shows "invoicefdp.exe" as a PDF, and an isolate can swap a name and an address. The whole Bidi_Control set goes now. Right-to-left text itself still reads right-to-left. encoding/json escapes the C0 controls as \u00XX and writes the C1 controls as the raw UTF-8 bytes they are, so `hey box --json` handed a terminal an 8-bit CSI inside a subject. Every JSON the CLI writes — the envelope, --quiet, an error, a jq object, a watch event — now goes through one marshal that escapes them. A decoder yields the identical string, so jq sees what it saw; only the raw bytes change. A jq string result on a pipe stays raw, as `jq -r` writes it: the bytes are the value and the consumer is a program. make secrets failed open, skipping when gitleaks or its config was missing; it is part of make security, so it fails instead. * Sanitize every server field on its way to a terminal, and define --html A sender's name, a subject, a filename, a habit title, a box name: each reached a terminal through some path that skipped terminal.Sanitize — the thread header, the contact detail, the watch line, a mutation summary, the TUI's entry header, calendar day, screener rows and pickers. They go through it now, and at the two places most of them funnel through they go through it once: the CLI table sanitizes its own cells, and the TUI's models — mail.Posting, models.Entry, Contact, Recording — are sanitized as they are built from what HEY served, so every row, picker and notice that shows them shows them inert. TestSinksAreSanitized keeps it that way. It walks internal/cmd and internal/tui and fails on a call to a listed sink — fmt.Fprintf, a builder's WriteString, a lipgloss Render — whose argument names a listed field outside a listed sanitizer. The claim is exactly that narrow: it sees the direct write and not the same value through a local variable first, so it is an inventory of the pattern and a guard against adding another, not a taint analysis. testdata/sink_manifest.txt lists the fields, the sanitizers, the sinks and the exemptions with reasons. --html had no contract: it was honored only in styled output, so on a pipe — the one place raw HTML belongs — it was ignored and the JSON came out instead, while on a terminal it dumped markup. It is a format now. It conflicts with every other output selector, is offered by the four commands that hold HTML (threads, journal read, contacts show, contacts note show) and refused by the rest before configuration is read, and is refused on a terminal with the redirect spelled out. A thread writes each entry's original HTML oldest first behind a comment naming the entry; a note writes its markup or nothing. The terminal refusal and the pipe are tested on a real pseudo-terminal and a real pipe. * Document the terminal-safety model and the --html contract * Show the ampersand ToMarkdown wrote, not a re-encoded one ToMarkdown writes every ampersand in prose as &, and Render then encoded every ampersand again, so "Fried & Hansson" came out of the pipeline reading "Fried & Hansson". Each half was right alone; the end-to-end test that would have caught the pair was missing. In prose Render now leaves an "&" as it is — glamour's one decode turns it into the "&" it stands for — and still encodes any other "&", so an entity the email spelled out stays the characters it was. Code is verbatim, so every "&" there is still encoded. Alt text, which glamour shows as written, gets the one decode ToMarkdown's "&" needs and nothing else. The pipeline test runs ToMarkdown into Render for each. * Size the C1-escaped buffer without arithmetic CodeQL reads as an overflow The capacity was len(data)+16, which go/allocation-size-overflow flags as a computation on a potentially large value. The sixteen bytes were a guess at how many escapes a typical envelope needs; append grows the slice the rare time one needs more, so the capacity is len(data) alone. * Act on the first review round of the safety floor Render's fallbacks showed the copy of the source rewritten for glamour, so a body glamour could not render read "Fried & Hansson"; prepareSource now hands back the source to show and the source for glamour apart, and a fallback shows the former. codeSpan collapsed every run of whitespace, which is content in code; only line endings become spaces now, and content that begins and ends with a space is padded by one more on each side, since a renderer strips one. The ordered-marker check joined the whole line to the run before measuring it, which was quadratic over a long line of dots; the length is checked first. A list nested past the cap rendered its items on one line; it renders them at the current level, markers and all. The sink checker treated any method named Render as markdown.Render, so a lipgloss style's Render passed for a sanitizer; a sanitizer listed with its package now matches only that qualified call, and the checker's own probe covers the styled write. The --html contract is settled before the version short-circuit and the jq validation, so `hey --version --html` is refused and `--html --jq=` reports the format conflict. A day without a journal entry writes nothing under --html rather than a usage error. An error printed as text is sanitized: on a terminal, and on stderr beside an --html redirect, the message may be the server's. Contacts and recordings are no longer sanitized as they are built: the edit forms send those fields back, so an unrelated save would have rewritten a name with a bidirectional mark in it. Every view sanitizes what it shows instead, and the forms' own input sanitizer strips controls on the way in. Box names reach the TUI's subnav and the move picker sanitized at those sinks, since mail.Source is also what --json serializes for a label or a collection. * Leave fenced quote markers and U+FFFD alone boundQuoteDepth collapsed a line of ">" inside a fence, where it is code; lines inside a fence are skipped now. isControl counted U+FFFD as a control and dropped it, but a replacement character is a printable glyph whether the email carried it or an invalid byte became one. * Track the whole fence, and keep --html's error format before the pre-run boundQuoteDepth remembered three characters of a fence opener and took any line starting with them as the closer, so a four-backtick fence holding a "```" line ended early and the code after it was bounded as quoting. The whole run is tracked and a closer is a run at least as long with nothing else on the line. An error Cobra raises before the pre-run — an unknown flag — built the fallback writer without --html, so an --html invocation got a JSON error on stderr; the fallback selects the HTML format the pre-run would have. * Measure no fence run on a blank line, and document which models stay raw * Read --html from the raw arguments for the pre-run fallback writer, whatever flag order * Measure nesting on goldmark's tree, build lines in a buffer, and sanitize the TUI's last raw sinks The line-wise quote bound only saw "> " spelled with spaces: markers separated by tabs, or a list inside a quote, still reached glamour a hundred deep and hung it. Depth is measured on goldmark's own tree now, in the same parse the entity rewrite uses, so every spelling glamour would honor counts, and a document past twenty levels is shown as its source rather than rendered. The line-wise bound and its fence tracking go with it; a fenced line of markers is code and counts for nothing. ToMarkdown built each line by string concatenation, quadratic in the length of a line; it builds in a buffer, and a test holds the allocation linear across a fourfold input. A body's bidirectional controls are stripped on the way to the terminal as a subject's are; the JSON keeps them. Search results were built into postings around mail.NewPosting, a thread entry's summary and sender name were raw in mail.NewEntry, and the TUI's error notices printed the server's words: each is sanitized now. gitleaks redacts what it finds. * Escape an unlinkable image's alt text as the prose it becomes
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Bumps actions/upload-artifact from 4.6.2 to 7.0.0.
Release notes
Sourced from actions/upload-artifact's releases.
... (truncated)
Commits
bbbca2dSupport direct file uploads (#764)589182cUpgrade the module to ESM and bump dependencies (#762)47309c9Merge pull request #754 from actions/Link-/add-proxy-integration-tests02a8460Add proxy integration testb7c566aMerge pull request #745 from actions/upload-artifact-v6-releasee516bc8docs: correct description of Node.js 24 support in READMEddc45eddocs: update README to correct action name for Node.js 24 support615b319chore: release v6.0.0 for Node.js 24 support017748bMerge pull request #744 from actions/fix-storage-blob38d4c79chore: rebuild distDependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
@dependabot rebasewill rebase this PR@dependabot recreatewill recreate this PR, overwriting any edits that have been made to it@dependabot show <dependency name> ignore conditionswill show all of the ignore conditions of the specified dependency@dependabot ignore this major versionwill close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this minor versionwill close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this dependencywill close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)Summary by cubic
Bump
actions/upload-artifactin.github/workflows/scorecard.ymlfrom v4.6.2 to v7.0.0 to use the latest runtime and features. The scorecard job still uploads the SARIF file as before.Written for commit f9dcf93. Summary will update on new commits.