Skip to content

Extend UnknownFlags to UnknownFlagsHandling and introduce PassUnknownFlagToArgs (#337) - #440

Merged
tomasaschan merged 3 commits into
spf13:masterfrom
ikedam:feature/337_PreserveUnknownFlagsEnum
Jun 6, 2026
Merged

tomasaschan merged 3 commits into
spf13:masterfrom
ikedam:feature/337_PreserveUnknownFlagsEnum

Conversation

@ikedam

@ikedam ikedam commented Aug 9, 2025 •

Copy link
Copy Markdown

Close #337

Alternative to #338.

FlagSet.ParseErrorsAllowlist.UnknownFlagsHandling=PassUnknownFlagToArgs behaves like this:

  • Input:
    -xayb -c -z --known-flag known-flag-value --unknown-flag arg0 arg1 arg2
    
    • -x, -y, -z and --unknown-flag are unknown
  • Args() results:
    -xy -z --unknown-flag arg0 arg1 arg2
    

This request deprecates FlagSet.ParseErrorsAllowlist.UnknownFlags and extends it to FlagSet.ParseErrorsAllowlist.UnknownFlagsHandling.

  • FlagSet.ParseErrorsAllowlist.UnknownFlagsHandling = ErrorOnUnknownFlag (Default)
    • Same to FlagSet.ParseErrorsAllowlist.UnknownFlags = false
    • Treats unknown flags error.
  • FlagSet.ParseErrorsAllowlist.UnknownFlagsHandling = IgnoreUnknownFlag
    • Same to FlagSet.ParseErrorsAllowlist.UnknownFlags = true
    • Ignore unknown flags.
  • FlagSet.ParseErrorsAllowlist.UnknownFlagsHandling=PassUnknownFlagToArgs:
    • Pass unknown flags to Args() (described above)

Backward compatibilities:

  • FlagSet.ParseErrorsAllowlist.UnknownFlagsHandling is not set (ErrorOnUnknownFlag) and FlagSet.ParseErrorsAllowlist.UnknownFlags = true:
    • Same to FlagSet.ParseErrorsAllowlist.UnknownFlagsHandling = ErrorOnUnknownFlag
    • Ignore unknown flags.
  • Also same for ParseErrorsWhitelist

Comment thread flag_test.go Outdated
if f.Parsed() {
t.Fatal("f.Parse() = true before Parse")
}
f.ParseErrorsAllowlist.UnknownFlagsHandling = UnknownFlagsHandlingPassUnknownToArgs

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

Comment thread flag.go Outdated
Comment on lines +144 to +152
// UnknownFlagsHandlingErrorOnUnknown will return an error if an unknown flag is found
UnknownFlagsHandlingErrorOnUnknown UnknownFlagsHandling = iota
// UnknownFlagsHandlingIgnoreUnknown will ignore unknown flags and continue parsing rest of the flags
UnknownFlagsHandlingIgnoreUnknown
// UnknownFlagsHandlingPassUnknownToArgs will treat unknown flags as non-flag arguments.
// Combined shorthand flags mixed with known ones and unknown ones results
// combined flags only with unknown ones.
// E.g. -fghi results -gh if only `f` and `i` are known.
UnknownFlagsHandlingPassUnknownToArgs

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

Reeeally long names...
I worry names like ErrorOnUnknown would cause name conflict.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Maybe ErrorOnUnknownFlag? Along with IgnoreUnknownFlag and PassUnknownFlagToArgs. I don't think they can be made shorter than that without losing meaning, but I don't think we need to be overly cautious about naming conflicts here.

If you really want to guard against it, another variant is to namespace these somehow - either with a struct value where the enum values are fields on the struct, or by just moving them to an appropriately named subpackage.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

Renamed in c0bdd63

@tomasaschan tomasaschan left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

I like this version a lot better than #338.

(The passing-error-as-control-flow thing smells a little, but the parseLongArg method was a mess before this change, so that's not your fault... Something to look out for in 2.0, I guess.)

Needs a rebase (I haven't looked into why) and probably shouldn't be merged until we've decided we don't have anything else we want to get into 1.0 before cutting 1.1.

Comment thread flag.go Outdated
Comment on lines +144 to +152
// UnknownFlagsHandlingErrorOnUnknown will return an error if an unknown flag is found
UnknownFlagsHandlingErrorOnUnknown UnknownFlagsHandling = iota
// UnknownFlagsHandlingIgnoreUnknown will ignore unknown flags and continue parsing rest of the flags
UnknownFlagsHandlingIgnoreUnknown
// UnknownFlagsHandlingPassUnknownToArgs will treat unknown flags as non-flag arguments.
// Combined shorthand flags mixed with known ones and unknown ones results
// combined flags only with unknown ones.
// E.g. -fghi results -gh if only `f` and `i` are known.
UnknownFlagsHandlingPassUnknownToArgs

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Maybe ErrorOnUnknownFlag? Along with IgnoreUnknownFlag and PassUnknownFlagToArgs. I don't think they can be made shorter than that without losing meaning, but I don't think we need to be overly cautious about naming conflicts here.

If you really want to guard against it, another variant is to namespace these somehow - either with a struct value where the enum values are fields on the struct, or by just moving them to an appropriately named subpackage.

Comment thread flag.go Outdated
Comment on lines +166 to +175
func (a *ParseErrorsAllowlist) getUnknownFlagsHandling() UnknownFlagsHandling {
// if UnknownFlagsHandling is set, use it
if a.UnknownFlagsHandling != UnknownFlagsHandlingErrorOnUnknown {
return a.UnknownFlagsHandling
}

if a.UnknownFlags {
return UnknownFlagsHandlingIgnoreUnknown
}
return UnknownFlagsHandlingErrorOnUnknown

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Nice!

@ikedam
ikedam force-pushed the feature/337_PreserveUnknownFlagsEnum branch from f16d4d7 to d1d7aee Compare March 6, 2026 16:56
@ikedam

ikedam commented Mar 6, 2026

Copy link
Copy Markdown
Author

First, rebased and resolved the conflict.
Conflicted with #446 .

Needs to support both ParseErrorsAllowlist and ParseErrorsWhitelist, and resolved as d1d7aee .
The conflict was left unresolved in the previous commit and fixed in this one so reviewers can see exactly how it was resolved.

* `UnknownFlagsHandlingErrorOnUnknown` to `ErrorOnUnknownFlag` and so on
@ikedam ikedam changed the title Extend UnknownFlags to UnknownFlagsHandling and introduce UnknownFlagsHandlingPassUnknownToArgs (#337) Extend UnknownFlags to UnknownFlagsHandling and introduce PassUnknownFlagToArgs (#337) Mar 6, 2026
@ikedam
ikedam requested a review from tomasaschan March 6, 2026 17:10

@tomasaschan tomasaschan left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

I'm sorry this took so long to get to reviewing. I have a couple of questions, but given this behavior is opt-in I think it would be OK to merge this to make it easier to test in real applications, and roll forward when more edge cases pop up.

Let me know if you prefer a merge now or to address those questions first.

Comment thread flag.go
Comment on lines 1075 to +1077
return stripUnknownFlagValue(a), nil
case unknownFlagsHandling == PassUnknownFlagToArgs:
return a, &unknownFlagError{

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

I don't understand why the previous case calls stripUnknownFlagValue and this is one does not.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

We can consider the case of --unknown somevalue.
--unknown is an unknown flag, and we cannot reliably tell whether somevalue is a flag value or a positional argument.

With PassUnknownFlagToArgs, we do not need to classify somevalue; we simply leave the argument stream intact and let the caller receive everything as positional args. So we don't need to call stripUnknownFlagValue().

With IgnoreUnknownFlag, the existing behavior treats the next token as a flag value (when it does not look like a flag) and calls stripUnknownFlagValue() to strip it. This behavior is inherited from the existing IgnoreUnknownFlag implementation.

Comment thread flag.go
Comment on lines +1144 to +1155
if len(shorthands) > 2 && shorthands[1] == '=' {
outShorts = ""
err = &unknownFlagError{
UnknownFlags: shorthands,
}
return
}
// '-fgh': pass only the first switch
err = &unknownFlagError{
UnknownFlags: shorthands[0:1],
}
return

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

What about -fg=g were both f and g are shorthands, but only g accept a value? Or -fgh (same)?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

Same here, differs in the next call.

For an unknown flag, parseShortArg only need to choose between:

  • strip only the first letter, or
  • strip all the argument

Both -fg=g and -fgh are the former case: only strips the first letter (f) as an unknown flag, and pass the rest (g=g or gh).
The rest will be handled in the next parseSingleShortArg() call.

In the next parseSingleShortArg(), g=g results the latter case, and gh results the former case.

@tomasaschan
tomasaschan merged commit 9912b67 into spf13:master Jun 6, 2026
tomasaschan added a commit that referenced this pull request Jun 24, 2026
Not sure why these weren't caught on pre-merge checks.
project-mirrors-bot-tu Bot pushed a commit to project-mirrors/gitea-act-runner that referenced this pull request Nov 16, 2026
This PR contains the following updates:

| Package | Type | Update | Change | [Age](https://docs.renovatebot.com/merge-confidence/) | [Confidence](https://docs.renovatebot.com/merge-confidence/) |
|---|---|---|---|---|---|
| docker.gitea.com/runner-images |  | digest | `b96ba46` → `139605d` |  |  |
| [docker/login-action](https://github.com/docker/login-action) ([changelog](https://github.com/docker/login-action/compare/81c6f93d4bc991e510b342a00b419b3bb4efc5c6..8aa5831fb8d48d8f76594c7ddde61ae58019f550)) | action | digest | `81c6f93` → `8aa5831` |  |  |
| [github.com/spf13/pflag](https://github.com/spf13/pflag) | require | minor | `v1.0.10` → `v1.1.0` | ![age](https://developer.mend.io/api/mc/badges/age/go/github.com%2fspf13%2fpflag/v1.1.0?slim=true) | ![confidence](https://developer.mend.io/api/mc/badges/confidence/go/github.com%2fspf13%2fpflag/v1.0.10/v1.1.0?slim=true) |
| [go](https://go.dev/) ([source](https://github.com/golang/go)) | toolchain | patch | `1.27.3` → `1.27.4` | ![age](https://developer.mend.io/api/mc/badges/age/golang-version/go/1.27.4?slim=true) | ![confidence](https://developer.mend.io/api/mc/badges/confidence/golang-version/go/1.27.3/1.27.4?slim=true) |
| [golang.org/x/sync](https://pkg.go.dev/golang.org/x/sync) | require | minor | [`v0.24.0` → `v0.25.0`](https://cs.opensource.google/go/x/sync/+/refs/tags/v0.24.0...refs/tags/v0.25.0) | ![age](https://developer.mend.io/api/mc/badges/age/go/golang.org%2fx%2fsync/v0.25.0?slim=true) | ![confidence](https://developer.mend.io/api/mc/badges/confidence/go/golang.org%2fx%2fsync/v0.24.0/v0.25.0?slim=true) |
| [golang.org/x/sys](https://pkg.go.dev/golang.org/x/sys) | require | minor | [`v0.49.0` → `v0.50.0`](https://cs.opensource.google/go/x/sys/+/refs/tags/v0.49.0...refs/tags/v0.50.0) | ![age](https://developer.mend.io/api/mc/badges/age/go/golang.org%2fx%2fsys/v0.50.0?slim=true) | ![confidence](https://developer.mend.io/api/mc/badges/confidence/go/golang.org%2fx%2fsys/v0.49.0/v0.50.0?slim=true) |
| [golang.org/x/term](https://pkg.go.dev/golang.org/x/term) | require | minor | [`v0.47.0` → `v0.48.0`](https://cs.opensource.google/go/x/term/+/refs/tags/v0.47.0...refs/tags/v0.48.0) | ![age](https://developer.mend.io/api/mc/badges/age/go/golang.org%2fx%2fterm/v0.48.0?slim=true) | ![confidence](https://developer.mend.io/api/mc/badges/confidence/go/golang.org%2fx%2fterm/v0.47.0/v0.48.0?slim=true) |
| [golang.org/x/text](https://pkg.go.dev/golang.org/x/text) | require | minor | [`v0.43.0` → `v0.44.0`](https://cs.opensource.google/go/x/text/+/refs/tags/v0.43.0...refs/tags/v0.44.0) | ![age](https://developer.mend.io/api/mc/badges/age/go/golang.org%2fx%2ftext/v0.44.0?slim=true) | ![confidence](https://developer.mend.io/api/mc/badges/confidence/go/golang.org%2fx%2ftext/v0.43.0/v0.44.0?slim=true) |
| [quay.io/containers/podman](https://quay.io/containers/podman) ([source](https://github.com/podman-container-tools/podman)) |  | major | `v5.8.9-immutable` → `v6.1.3-immutable` | ![age](https://developer.mend.io/api/mc/badges/age/docker/quay.io%2fcontainers%2fpodman/v6.1.3?slim=true) | ![confidence](https://developer.mend.io/api/mc/badges/confidence/docker/quay.io%2fcontainers%2fpodman/v5.8.9/v6.1.3?slim=true) |

---

### HTTP/1 server crash due to MaxBytesReader header race in net/http
[CVE-2026-97054](https://nvd.nist.gov/vuln/detail/CVE-2026-97054) / [GO-2026-6859](https://pkg.go.dev/vuln/GO-2026-6859)

<details>
<summary>More information</summary>

#### Details
For HTTP/1 servers, when MaxBytesReader's limit is exceeded, "Connection: close" header is automatically set without synchronization, which might race with another header being set explicitly in the server handler. As a result, an HTTP/1 server that utilizes MaxBytesReader or MaxBytesHandler can crash due to runtime panic if its handler reads the request body concurrently with writing the response header.

#### Severity
Unknown

#### References
- [https://go.dev/cl/862185](https://go.dev/cl/862185)
- [https://go.dev/issue/82563](https://go.dev/issue/82563)
- [https://groups.google.com/g/golang-announce/c/iY8TY0wWgbM](https://groups.google.com/g/golang-announce/c/iY8TY0wWgbM)

This data is provided by [OSV](https://osv.dev/vulnerability/GO-2026-6859) and the [Go Vulnerability Database](https://github.com/golang/vulndb) ([CC-BY 4.0](https://github.com/golang/vulndb#license)).
</details>

---

### Release Notes

<details>
<summary>spf13/pflag (github.com/spf13/pflag)</summary>

### [`v1.1.0`](https://github.com/spf13/pflag/releases/tag/v1.1.0)

[Compare Source](spf13/pflag@v1.0.10...v1.1.0)

It's been long enough, and enough things have been fixed, that it might be time to release a new version, even if there isn't any particular big new issue to market as the reason for this release.

If you notice anything breaking, it is entirely un-intentional, but you might also have been relying on [undocumented](https://www.hyrumslaw.com/) or [buggy](https://xkcd.com/1172/) behavior. Please file an issue describing what you're doing, how it worked before this release and why it doesn't work anymore, and pin your projects to `v1.0.10` (the latest release before this one) while we decide how to address your concerns.

#### What's Changed

- README: update badges and minor linting fixes by [@&#8203;thaJeztah](https://github.com/thaJeztah) in [#&#8203;452](spf13/pflag#452)
- Show 'correct' explicit bool value syntax in help by [@&#8203;alimpfard](https://github.com/alimpfard) in [#&#8203;453](spf13/pflag#453)
- Fix for Go 1.24 by [@&#8203;pterjan](https://github.com/pterjan) in [#&#8203;460](spf13/pflag#460)
- fix(map): ensure string-to-string flags maintain stable pointers by [@&#8203;brandon1024](https://github.com/brandon1024) in [#&#8203;457](spf13/pflag#457)
- Fix getFlagType error message by [@&#8203;wellitonscheer](https://github.com/wellitonscheer) in [#&#8203;462](spf13/pflag#462)
- update actions, and fix linting issues by [@&#8203;thaJeztah](https://github.com/thaJeztah) in [#&#8203;450](spf13/pflag#450)
- fix: README.md indicating the use of godoc(deprecated) by [@&#8203;malklera](https://github.com/malklera) in [#&#8203;467](spf13/pflag#467)
- Fix broken link to POSIX argument conventions by [@&#8203;tomasaschan](https://github.com/tomasaschan) in [#&#8203;464](spf13/pflag#464)
- Replace raw stdlib parse errors in typed flag Set methods ([#&#8203;269](spf13/pflag#269)) by [@&#8203;reuvenharrison](https://github.com/reuvenharrison) in [#&#8203;469](spf13/pflag#469)
- Extend `UnknownFlags` to `UnknownFlagsHandling` and introduce `PassUnknownFlagToArgs` ([#&#8203;337](spf13/pflag#337)) by [@&#8203;ikedam](https://github.com/ikedam) in [#&#8203;440](spf13/pflag#440)
- fix: allow nil default IP flags in GetIP by [@&#8203;happysnaker](https://github.com/happysnaker) in [#&#8203;483](spf13/pflag#483)
- fix: allow hex input in UintSlice by [@&#8203;happysnaker](https://github.com/happysnaker) in [#&#8203;484](spf13/pflag#484)
- fix: honor custom IsBoolFlag compatibility by [@&#8203;happysnaker](https://github.com/happysnaker) in [#&#8203;487](spf13/pflag#487)
- docs: clarify SortFlags example with complete runnable program by [@&#8203;happysnaker](https://github.com/happysnaker) in [#&#8203;488](spf13/pflag#488)
- docs: add release process documentation by [@&#8203;happysnaker](https://github.com/happysnaker) in [#&#8203;490](spf13/pflag#490)
- fix: print to set destination, not hardcoded os.Stderr by [@&#8203;quite](https://github.com/quite) in [#&#8203;502](spf13/pflag#502)
- ci: bump golangci-lint to v2.13 for Go 1.27 by [@&#8203;hdimer](https://github.com/hdimer) in [#&#8203;508](spf13/pflag#508)
- Initialize the target map when a StringToString flag has a nil default by [@&#8203;nikolauspschuetz](https://github.com/nikolauspschuetz) in [#&#8203;506](spf13/pflag#506)
- fix: honour deprecated ParseErrorsWhitelist.UnknownFlagsHandling by [@&#8203;lenamonj](https://github.com/lenamonj) in [#&#8203;507](spf13/pflag#507)
- test: add StringSlice Append coverage by [@&#8203;LY-19418](https://github.com/LY-19418) in [#&#8203;504](spf13/pflag#504)
- Keep wrapping after an unbreakable usage word by [@&#8203;AzazelSensei](https://github.com/AzazelSensei) in [#&#8203;503](spf13/pflag#503)
- Validate IP slice values before appending or replacing by [@&#8203;agammann](https://github.com/agammann) in [#&#8203;513](spf13/pflag#513)
- fix(ci): Use the latest golangci-lint release by [@&#8203;tomasaschan](https://github.com/tomasaschan) in [#&#8203;525](spf13/pflag#525)
- Reject IPv6 addresses as IPv4 masks by [@&#8203;yuefdev](https://github.com/yuefdev) in [#&#8203;524](spf13/pflag#524)
- Report the flag name as typed in deprecation warnings by [@&#8203;hdimer](https://github.com/hdimer) in [#&#8203;500](spf13/pflag#500)
- Document non-interspersed argument parsing by [@&#8203;yuefdev](https://github.com/yuefdev) in [#&#8203;523](spf13/pflag#523)
- Preserve trailing whitespace in StringToString formatting by [@&#8203;r4venrudy](https://github.com/r4venrudy) in [#&#8203;522](spf13/pflag#522)
- Reject extra CSV records in StringToString arguments by [@&#8203;Harshil-1603](https://github.com/Harshil-1603) in [#&#8203;521](spf13/pflag#521)
- Preserve current string values in CopyToGoFlagSet by [@&#8203;adenzhou1350](https://github.com/adenzhou1350) in [#&#8203;520](spf13/pflag#520)
- Fix type identification and mismatch checks for text flags by [@&#8203;dewanshshekhar](https://github.com/dewanshshekhar) in [#&#8203;526](spf13/pflag#526)
- fix: enforce native integer flag bounds on 32-bit platforms by [@&#8203;gdpu11](https://github.com/gdpu11) in [#&#8203;534](spf13/pflag#534)
- fix: preserve count flag values when parsing fails by [@&#8203;gdpu11](https://github.com/gdpu11) in [#&#8203;533](spf13/pflag#533)

#### New Contributors

- [@&#8203;alimpfard](https://github.com/alimpfard) made their first contribution in [#&#8203;453](spf13/pflag#453)
- [@&#8203;pterjan](https://github.com/pterjan) made their first contribution in [#&#8203;460](spf13/pflag#460)
- [@&#8203;brandon1024](https://github.com/brandon1024) made their first contribution in [#&#8203;457](spf13/pflag#457)
- [@&#8203;wellitonscheer](https://github.com/wellitonscheer) made their first contribution in [#&#8203;462](spf13/pflag#462)
- [@&#8203;malklera](https://github.com/malklera) made their first contribution in [#&#8203;467](spf13/pflag#467)
- [@&#8203;reuvenharrison](https://github.com/reuvenharrison) made their first contribution in [#&#8203;469](spf13/pflag#469)
- [@&#8203;ikedam](https://github.com/ikedam) made their first contribution in [#&#8203;440](spf13/pflag#440)
- [@&#8203;happysnaker](https://github.com/happysnaker) made their first contribution in [#&#8203;483](spf13/pflag#483)
- [@&#8203;quite](https://github.com/quite) made their first contribution in [#&#8203;502](spf13/pflag#502)
- [@&#8203;hdimer](https://github.com/hdimer) made their first contribution in [#&#8203;508](spf13/pflag#508)
- [@&#8203;nikolauspschuetz](https://github.com/nikolauspschuetz) made their first contribution in [#&#8203;506](spf13/pflag#506)
- [@&#8203;lenamonj](https://github.com/lenamonj) made their first contribution in [#&#8203;507](spf13/pflag#507)
- [@&#8203;LY-19418](https://github.com/LY-19418) made their first contribution in [#&#8203;504](spf13/pflag#504)
- [@&#8203;AzazelSensei](https://github.com/AzazelSensei) made their first contribution in [#&#8203;503](spf13/pflag#503)
- [@&#8203;agammann](https://github.com/agammann) made their first contribution in [#&#8203;513](spf13/pflag#513)
- [@&#8203;yuefdev](https://github.com/yuefdev) made their first contribution in [#&#8203;524](spf13/pflag#524)
- [@&#8203;r4venrudy](https://github.com/r4venrudy) made their first contribution in [#&#8203;522](spf13/pflag#522)
- [@&#8203;Harshil-1603](https://github.com/Harshil-1603) made their first contribution in [#&#8203;521](spf13/pflag#521)
- [@&#8203;adenzhou1350](https://github.com/adenzhou1350) made their first contribution in [#&#8203;520](spf13/pflag#520)
- [@&#8203;dewanshshekhar](https://github.com/dewanshshekhar) made their first contribution in [#&#8203;526](spf13/pflag#526)
- [@&#8203;gdpu11](https://github.com/gdpu11) made their first contribution in [#&#8203;534](spf13/pflag#534)

**Full Changelog**: <spf13/pflag@v1.0.10...v1.1.0>

</details>

<details>
<summary>podman-container-tools/podman (quay.io/containers/podman)</summary>

### [`v6.1.3`](https://github.com/podman-container-tools/podman/releases/tag/v6.1.3)

[Compare Source](podman-container-tools/podman@v5.8.9...v6.1.3)

##### Security

- This release addresses [CVE-2026-94603](GHSA-2cvf-wqm6-wr9g), where a `podman run` on a checkpoint image (any image with the `io.podman.annotations.checkpoint.runtime.name` annotation) could disable all sandboxing, including sandboxing specified by the user, when the container was created.

##### Breaking Changes

- Removed support for checkpoint images in `podman run` due to serious security concerns with the different security models of running images and running checkpoints. Checkpoints ignore user-specified security configuration and are very difficult to run safely.

</details>

---

### Configuration

📅 **Schedule**: (UTC)

- Branch creation
  - Between 12:00 AM and 03:59 AM, only on Monday (`* 0-3 * * 1`)
- Automerge
  - At any time (no schedule defined)

🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

👻 **Immortal**: This PR will be recreated if closed unmerged. Get [config help](https://github.com/renovatebot/renovate/discussions) if that's undesired.

---

 - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box

---

This PR has been generated by [Mend Renovate CLI](https://github.com/renovatebot/renovate).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0NC4yMjIuNSIsInVwZGF0ZWRJblZlciI6IjQ0LjIzOS4xIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6W119-->

Reviewed-on: https://gitea.com/gitea/runner/pulls/1414
Reviewed-by: silverwind <[email protected]>
Co-authored-by: Renovate Bot <[email protected]>
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.

Preserve unknown flags

2 participants