Repository navigation
Don't assume array indexes exist, check first - #352
Merged
Merged
Conversation
Signed-off-by: Johanna Walter <[email protected]>
Johanna Walter (johannawalter)
requested review from
Cody Moore (dotCipher) and
FlorianS (florian0410)
March 24, 2023 18:34
Andriy Knysh (aknysh)
left a comment
Member
There was a problem hiding this comment.
thanks Johanna Walter (@johannawalter) , please see comments
Yup. Nice catch. Co-authored-by: Andriy Knysh <[email protected]>
Andriy Knysh (aknysh)
approved these changes
Mar 24, 2023
Andriy Knysh (aknysh)
left a comment
Member
There was a problem hiding this comment.
thank you Johanna Walter (@johannawalter)
Erik Osterman (Cloud Posse) (osterman)
added a commit
that referenced
this pull request
Nov 14, 2026
…s and joi Go: andybalholm/brotli v1.2.1 -> v1.2.7 (GO-2026-6888), klauspost/compress v1.19.2 -> v1.20.2 (GO-2026-6865), go.opentelemetry.io/otel family v1.46.0 -> v1.47.0 (Dependabot #356, #357). website: follow-redirects ^1.16.2 (#350), joi ^17.13.9 (#352) via pnpm.overrides. NOTICE regenerated. Not fixed: go-jose/v3 (no patch), tinypool and minimatch (major bump blocked by dependabot ignore policy), deepmerge (no patch). Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
zack-is-cool
pushed a commit
to zack-is-cool/atmos
that referenced
this pull request
Nov 17, 2026
…dposse#3689) * refactor: resolve lint debt in config, exec and plugin packages Split out of the Git push retry PR so that review stays focused. Refactors pkg/config YAML decoding and environment helpers, passes large option structs by pointer, groups stack search results, and replaces dynamic errors with wrapped sentinels across internal/exec, pkg/plugin, pkg/helmfile and pkg/script. Also aligns the custom lint version and the no-network allowlist. Co-Authored-By: Claude Sonnet 5.5 <[email protected]> * fix(schema): describe provider credentials in the generated schema Replace lint-code comments with user-facing field descriptions and regenerate the atmos.yaml JSON schema, which publishes field comments as descriptions. Co-Authored-By: Claude Sonnet 5.5 <[email protected]> * fix(config): wrap env parse errors and share stack-config sentinels Wrap bare strconv parse errors in pkg/config/environment.go with ErrInvalidConfig and the offending variable name, preserving the underlying parser error. Move the four stack-config sentinels from pkg/config/utils.go into errors/errors.go as exported Err* values with unchanged messages. Co-Authored-By: Claude Sonnet 5.5 <[email protected]> * fix(security): bump brotli, klauspost/compress, otel, follow-redirects and joi Go: andybalholm/brotli v1.2.1 -> v1.2.7 (GO-2026-6888), klauspost/compress v1.19.2 -> v1.20.2 (GO-2026-6865), go.opentelemetry.io/otel family v1.46.0 -> v1.47.0 (Dependabot cloudposse#356, cloudposse#357). website: follow-redirects ^1.16.2 (cloudposse#350), joi ^17.13.9 (cloudposse#352) via pnpm.overrides. NOTICE regenerated. Not fixed: go-jose/v3 (no patch), tinypool and minimatch (major bump blocked by dependabot ignore policy), deepmerge (no patch). Co-Authored-By: Claude Sonnet 5.5 <[email protected]> --------- Co-authored-by: Claude Sonnet 5.5 <[email protected]>
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.
This is the first instance I've seen us run into the issue of
atmossimply panicking. Tracking it back I found unchecked array indexes (index assumed to exist). These checks will prevent those panics in the future and, were applicable, return a useful error message.Pre-patch:
Post-patch: