forked frommitchellh/mapstructure
- Notifications
You must be signed in to change notification settings - Fork26
build(deps): bump actions/setup-go from 5.3.0 to 5.4.0#78
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Merged
sagikazarmark merged 1 commit intomainfromdependabot/github_actions/actions/setup-go-5.4.0Mar 26, 2025
Merged
build(deps): bump actions/setup-go from 5.3.0 to 5.4.0#78
sagikazarmark merged 1 commit intomainfromdependabot/github_actions/actions/setup-go-5.4.0Mar 26, 2025
Uh oh!
There was an error while loading.Please reload this page.
Conversation
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
Bumps [actions/setup-go](https://github.com/actions/setup-go) from 5.3.0 to 5.4.0.- [Release notes](https://github.com/actions/setup-go/releases)- [Commits](actions/setup-go@f111f33...0aaccfd)---updated-dependencies:- dependency-name: actions/setup-go dependency-type: direct:production update-type: version-update:semver-minor...Signed-off-by: dependabot[bot] <support@github.com>
sagikazarmark approved these changesMar 26, 2025
8cfa816
intomain 10 checks passed
Uh oh!
There was an error while loading.Please reload this page.
project-mirrors-bot-tubot pushed a commit to project-mirrors/forgejo-runner-as-gitea-act-runner-fork that referenced this pull requestJul 3, 2025
…RITY] (#622)This PR contains the following updates:| Package | Change | Age | Confidence ||---|---|---|---|| [github.com/go-viper/mapstructure/v2](https://github.com/go-viper/mapstructure) | `v2.2.1` -> `v2.3.0` | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) |---### mapstructure May Leak Sensitive Information in Logs When Processing Malformed Data[GHSA-fv92-fjc5-jj9h](GHSA-fv92-fjc5-jj9h)<details><summary>More information</summary>#### Details##### SummaryUse of this library in a security-critical context may result in leaking sensitive information, if used to process sensitive fields.##### DetailsOpenBao (and presumably HashiCorp Vault) have surfaced error messages from `mapstructure` as follows:https://github.com/openbao/openbao/blob/98c3a59c040efca724353ca46ca79bd5cdbab920/sdk/framework/field_data.go#L43-L50```go_, _, err := d.getPrimitive(field, schema)if err != nil {return fmt.Errorf("error converting input for field %q: %w", field, err)}```where this calls `mapstructure.WeakDecode(...)`:https://github.com/openbao/openbao/blob/98c3a59c040efca724353ca46ca79bd5cdbab920/sdk/framework/field_data.go#L181-L193```gofunc (d *FieldData) getPrimitive(k string, schema *FieldSchema) (interface{}, bool, error) {raw, ok := d.Raw[k]if !ok {return nil, false, nil}switch t := schema.Type; t {case TypeBool:var result boolif err := mapstructure.WeakDecode(raw, &result); err != nil {return nil, false, err}return result, true, nil```Notably, `WeakDecode(...)` eventually calls one of the decode helpers, which surfaces the original value:https://github.com/go-viper/mapstructure/blob/1a66224d5e54d8757f63bd66339cf764c3292c21/mapstructure.go#L679-L686https://github.com/go-viper/mapstructure/blob/1a66224d5e54d8757f63bd66339cf764c3292c21/mapstructure.go#L726-L730https://github.com/go-viper/mapstructure/blob/1a66224d5e54d8757f63bd66339cf764c3292c21/mapstructure.go#L783-L787& more.##### PoCTo reproduce with OpenBao:```$ podman run -p 8300:8300 openbao/openbao:latest server -dev -dev-root-token-id=root -dev-listen-address=0.0.0.0:8300```and in a new tab:```$ BAO_TOKEN=root BAO_ADDR=http://localhost:8300 bao auth enable userpassSuccess! Enabled userpass auth method at: userpass/$ curl -X PUT -H "X-Vault-Request: true" -H "X-Vault-Token: root" -d '{"password":{"asdf":"my-sensitive-value"}}' "http://localhost:8300/v1/auth/userpass/users/adsf"{"errors":["error converting input for field \"password\": '' expected type 'string', got unconvertible type 'map[string]interface {}', value: 'map[asdf:my-sensitive-value]'"]}```##### ImpactThis is an information disclosure bug with little mitigation. Seehttps://discuss.hashicorp.com/t/hcsec-2025-09-vault-may-expose-sensitive-information-in-error-logs-when-processing-malformed-data-with-the-kv-v2-plugin/74717 for a previous version. That version was fixed, but this is in the second part of that error message (starting at `'' expected a map, got 'string'` -- when the field type is `string` and a `map` is provided, we see the above information leak -- the previous example had a `map` type field with a `string` value provided).This was rated 4.5 Medium by HashiCorp in the past iteration.#### Severity- CVSS Score: 5.3 / 10 (Medium)- Vector String: `CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:N/A:N`#### References- [https://github.com/go-viper/mapstructure/security/advisories/GHSA-fv92-fjc5-jj9h](https://github.com/go-viper/mapstructure/security/advisories/GHSA-fv92-fjc5-jj9h)- [https://github.com/go-viper/mapstructure](https://github.com/go-viper/mapstructure)This data is provided by [OSV](https://osv.dev/vulnerability/GHSA-fv92-fjc5-jj9h) and the [GitHub Advisory Database](https://github.com/github/advisory-database) ([CC-BY 4.0](https://github.com/github/advisory-database/blob/main/LICENSE.md)).</details>---### Release Notes<details><summary>go-viper/mapstructure (github.com/go-viper/mapstructure/v2)</summary>### [`v2.3.0`](https://github.com/go-viper/mapstructure/releases/tag/v2.3.0)[Compare Source](go-viper/mapstructure@v2.2.1...v2.3.0)#### What's Changed- build(deps): bump actions/checkout from 4.1.7 to 4.2.0 by [@​dependabot](https://github.com/dependabot) ingo-viper/mapstructure#46- build(deps): bump golangci/golangci-lint-action from 6.1.0 to 6.1.1 by [@​dependabot](https://github.com/dependabot) ingo-viper/mapstructure#47- \[enhancement] Add check for `reflect.Value` in `ComposeDecodeHookFunc` by [@​mahadzaryab1](https://github.com/mahadzaryab1) ingo-viper/mapstructure#52- build(deps): bump actions/setup-go from 5.0.2 to 5.1.0 by [@​dependabot](https://github.com/dependabot) ingo-viper/mapstructure#51- build(deps): bump actions/checkout from 4.2.0 to 4.2.2 by [@​dependabot](https://github.com/dependabot) ingo-viper/mapstructure#50- build(deps): bump actions/setup-go from 5.1.0 to 5.2.0 by [@​dependabot](https://github.com/dependabot) ingo-viper/mapstructure#55- build(deps): bump actions/setup-go from 5.2.0 to 5.3.0 by [@​dependabot](https://github.com/dependabot) ingo-viper/mapstructure#58- ci: add Go 1.24 to the test matrix by [@​sagikazarmark](https://github.com/sagikazarmark) ingo-viper/mapstructure#74- build(deps): bump golangci/golangci-lint-action from 6.1.1 to 6.5.0 by [@​dependabot](https://github.com/dependabot) ingo-viper/mapstructure#72- build(deps): bump golangci/golangci-lint-action from 6.5.0 to 6.5.1 by [@​dependabot](https://github.com/dependabot) ingo-viper/mapstructure#76- build(deps): bump actions/setup-go from 5.3.0 to 5.4.0 by [@​dependabot](https://github.com/dependabot) ingo-viper/mapstructure#78- feat: add decode hook for netip.Prefix by [@​tklauser](https://github.com/tklauser) ingo-viper/mapstructure#85- Updates by [@​sagikazarmark](https://github.com/sagikazarmark) ingo-viper/mapstructure#86- build(deps): bump github/codeql-action from 2.13.4 to 3.28.15 by [@​dependabot](https://github.com/dependabot) ingo-viper/mapstructure#87- build(deps): bump actions/setup-go from 5.4.0 to 5.5.0 by [@​dependabot](https://github.com/dependabot) ingo-viper/mapstructure#93- build(deps): bump github/codeql-action from 3.28.15 to 3.28.17 by [@​dependabot](https://github.com/dependabot) ingo-viper/mapstructure#92- build(deps): bump github/codeql-action from 3.28.17 to 3.28.19 by [@​dependabot](https://github.com/dependabot) ingo-viper/mapstructure#97- build(deps): bump ossf/scorecard-action from 2.4.1 to 2.4.2 by [@​dependabot](https://github.com/dependabot) ingo-viper/mapstructure#96- Update README.md by [@​peczenyj](https://github.com/peczenyj) ingo-viper/mapstructure#90- Add omitzero tag. by [@​Crystalix007](https://github.com/Crystalix007) ingo-viper/mapstructure#98- Use error structs instead of duplicated strings by [@​m1k1o](https://github.com/m1k1o) ingo-viper/mapstructure#102- build(deps): bump github/codeql-action from 3.28.19 to 3.29.0 by [@​dependabot](https://github.com/dependabot) ingo-viper/mapstructure#101- feat: add common error interface by [@​sagikazarmark](https://github.com/sagikazarmark) ingo-viper/mapstructure#105- update linter by [@​sagikazarmark](https://github.com/sagikazarmark) ingo-viper/mapstructure#106- Feature allow unset pointer by [@​rostislaved](https://github.com/rostislaved) ingo-viper/mapstructure#80#### New Contributors- [@​tklauser](https://github.com/tklauser) made their first contribution ingo-viper/mapstructure#85- [@​peczenyj](https://github.com/peczenyj) made their first contribution ingo-viper/mapstructure#90- [@​Crystalix007](https://github.com/Crystalix007) made their first contribution ingo-viper/mapstructure#98- [@​rostislaved](https://github.com/rostislaved) made their first contribution ingo-viper/mapstructure#80**Full Changelog**:go-viper/mapstructure@v2.2.1...v2.3.0</details>---### Configuration📅 **Schedule**: Branch creation - "" (UTC), Automerge - Between 12:00 AM and 03:59 AM ( * 0-3 * * * ) (UTC).🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.🔕 **Ignore**: Close this PR and you won't be reminded about this update again.--- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box---This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate).<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0MS4xLjQiLCJ1cGRhdGVkSW5WZXIiOiI0MS4xLjQiLCJ0YXJnZXRCcmFuY2giOiJtYWluIiwibGFiZWxzIjpbXX0=-->Reviewed-on:https://code.forgejo.org/forgejo/runner/pulls/622Reviewed-by: earl-warren <earl-warren@noreply.code.forgejo.org>Co-authored-by: Renovate Bot <bot@kriese.eu>Co-committed-by: Renovate Bot <bot@kriese.eu>
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Labels
dependenciesPull requests that update a dependency file github_actionsPull requests that update GitHub Actions code
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.
Bumpsactions/setup-go from 5.3.0 to 5.4.0.
Release notes
Sourced fromactions/setup-go's releases.
Commits
0aaccfd
Bump undici from 5.28.4 to 5.28.5 (#541)c4c1141
upgrade actions/cache to 4.0.2 (#568)5a083d0
Bump eslint-config-prettier from 8.10.0 to 10.0.1 (#536)1d82324
Bump semver from 7.6.0 to 7.6.3 (#535)Dependabot 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 rebase
will rebase this PR@dependabot recreate
will recreate this PR, overwriting any edits that have been made to it@dependabot merge
will merge this PR after your CI passes on it@dependabot squash and merge
will squash and merge this PR after your CI passes on it@dependabot cancel merge
will cancel a previously requested merge and block automerging@dependabot reopen
will reopen this PR if it is closed@dependabot close
will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually@dependabot show <dependency name> ignore conditions
will show all of the ignore conditions of the specified dependency@dependabot ignore this major version
will 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 version
will 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 dependency
will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)