diff --git a/.github/workflows/push.yaml b/.github/workflows/push.yaml index 2206ef43..2f867ade 100644 --- a/.github/workflows/push.yaml +++ b/.github/workflows/push.yaml @@ -167,8 +167,11 @@ jobs: run: | echo "Building for ${GOOS}/${GOARCH}..." if [ "${GOOS}" = "windows" ]; then export EXT=".exe"; else export EXT=""; fi - go build -ldflags "-s -w -X=github.com/simple-container-com/api/internal/build.Version=${VERSION}" -o dist/${GOOS}-${GOARCH}/sc${EXT} ./cmd/sc - tar -czf .sc/stacks/dist/bundle/sc-${GOOS}-${GOARCH}.tar.gz -C dist/${GOOS}-${GOARCH} sc${EXT} + go build -trimpath -buildvcs=false -ldflags "-s -w -X=github.com/simple-container-com/api/internal/build.Version=${VERSION}" -o dist/${GOOS}-${GOARCH}/sc${EXT} ./cmd/sc + # Deterministic tarball: fixed entry order, zeroed mtime/owner, a + # forced mode (independent of the builder umask) and gzip -9 -n + # (no embedded timestamp) so a rebuild reproduces it bit-for-bit. + tar --sort=name --mtime='@0' --owner=0 --group=0 --numeric-owner --mode='u=rwx,go=rx' -cf - -C dist/${GOOS}-${GOARCH} sc${EXT} | gzip -9 -n > .sc/stacks/dist/bundle/sc-${GOOS}-${GOARCH}.tar.gz cp .sc/stacks/dist/bundle/sc-${GOOS}-${GOARCH}.tar.gz .sc/stacks/dist/bundle/sc-${GOOS}-${GOARCH}-v${VERSION}.tar.gz # Phase 2: per-tarball SHA-256, CycloneDX SBOM, cosign keyless signature # (self-contained bundle), SLSA provenance. Soft-fail per step — the tarball @@ -314,7 +317,7 @@ jobs: VERSION: ${{ needs.prepare.outputs.version }} CGO_ENABLED: "0" run: | - go build -a -installsuffix cgo -ldflags "-s -w -X=github.com/simple-container-com/api/internal/build.Version=${VERSION}" -o ${{ matrix.output }} ./cmd/${{ matrix.cmd }} + go build -trimpath -buildvcs=false -a -installsuffix cgo -ldflags "-s -w -X=github.com/simple-container-com/api/internal/build.Version=${VERSION}" -o ${{ matrix.output }} ./cmd/${{ matrix.cmd }} - name: upload ${{ matrix.target }} binary uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1 with: diff --git a/.golangci.yml b/.golangci.yml index d76700f3..15c05ede 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -14,8 +14,17 @@ linters: - unused - staticcheck - gci + - goheader linters-settings: + goheader: + # Enforces the per-file SPDX + copyright header on every source file + # (OpenSSF Gold: license_per_file + copyright_per_file). Year-less by design + # so it is set-once and never needs an annual bump. Generated mocks are + # excluded below (issues.exclude-rules) — they carry the generator header. + template: |- + SPDX-License-Identifier: MIT + Copyright (c) Simple Container gci: sections: - standard # Standard section: captures all standard packages. @@ -31,4 +40,12 @@ linters-settings: revive: rules: - name: var-naming # usually this is not critical - disabled: true \ No newline at end of file + disabled: true + +issues: + exclude-rules: + # Auto-generated mocks carry the mockery "Code generated" header and are + # regenerated by `go generate`; they get no SPDX/copyright header. + - path: mocks/ + linters: + - goheader \ No newline at end of file diff --git a/cmd/cloud-helpers/main.go b/cmd/cloud-helpers/main.go index 33b45844..3942c82c 100644 --- a/cmd/cloud-helpers/main.go +++ b/cmd/cloud-helpers/main.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package main import ( diff --git a/cmd/generate-embeddings/main.go b/cmd/generate-embeddings/main.go index c36ce599..41185e9c 100644 --- a/cmd/generate-embeddings/main.go +++ b/cmd/generate-embeddings/main.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package main import ( diff --git a/cmd/github-actions/main.go b/cmd/github-actions/main.go index 4759896f..a2ddc0df 100644 --- a/cmd/github-actions/main.go +++ b/cmd/github-actions/main.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package main import ( @@ -339,7 +342,8 @@ func runGitCommandWithAuth(ctx context.Context, log logger.Logger, dir string, a // Set up environment with authentication for submodule URLs // This converts https://github.com/ URLs to use the token - env := append(os.Environ(), + env := append( + os.Environ(), "GIT_TERMINAL_PROMPT=0", "GIT_SSH_COMMAND=ssh -o StrictHostKeyChecking=no", "GIT_ASKPASS=echo", @@ -412,7 +416,8 @@ func runGitCommand(ctx context.Context, log logger.Logger, dir string, args []st cmd := exec.Command(args[0], args[1:]...) cmd.Dir = dir - cmd.Env = append(os.Environ(), + cmd.Env = append( + os.Environ(), "GIT_TERMINAL_PROMPT=0", "GIT_SSH_COMMAND=ssh -o StrictHostKeyChecking=no", "GIT_ASKPASS=echo", // Prevent any password prompts diff --git a/cmd/sc/main.go b/cmd/sc/main.go index edfd0faf..4e5cfa48 100644 --- a/cmd/sc/main.go +++ b/cmd/sc/main.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package main import ( diff --git a/cmd/schema-gen/main.go b/cmd/schema-gen/main.go index 6f91af89..237981c2 100644 --- a/cmd/schema-gen/main.go +++ b/cmd/schema-gen/main.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package main import ( diff --git a/docs/REPRODUCIBLE-BUILD.md b/docs/REPRODUCIBLE-BUILD.md new file mode 100644 index 00000000..2b73121c --- /dev/null +++ b/docs/REPRODUCIBLE-BUILD.md @@ -0,0 +1,77 @@ +# Reproducible builds + +The release binaries (`sc`, `cloud-helpers`, `github-actions`) and the +published `sc--.tar.gz` archives are built deterministically: +rebuilding the **same source at the same version** on a clean machine +yields a **bit-for-bit identical** binary and archive. This lets anyone +independently rebuild a release and confirm the published artifact (and +its `cosign` / SLSA digest) was built from the published source. + +## What makes the build reproducible + +| Input | How it is pinned | Where | +|---|---|---| +| **Go toolchain** | exact patch version pinned by the `go` directive; `GOTOOLCHAIN` resolves it deterministically | [`go.mod`](../go.mod) | +| **Filesystem paths** | `-trimpath` strips the build machine's `$GOPATH`/module paths from the binary | release jobs in [`.github/workflows/push.yaml`](../.github/workflows/push.yaml) (`build sc`, `build `) and the [`welder.yaml`](../welder.yaml) `build` / `build-cloud-helpers` / `build-github-actions` tasks | +| **VCS stamping** | `-buildvcs=false` — Go would otherwise embed `vcs.revision`/`vcs.time`/`vcs.modified` into the binary (which `-trimpath` does **not** strip), so a rebuild from a source tarball without `.git`, or from a tree with any local modification, would diverge | every release build (same `go build` invocations as above) | +| **C toolchain variance** | `CGO_ENABLED=0` — pure-Go static build, no host libc/linker dependency | every release build: `push.yaml` `build sc` + `build `; `welder.yaml` `build`, `build-cloud-helpers`, `build-github-actions` | +| **Embedded version string** | `-ldflags "-s -w -X .../internal/build.Version=$VERSION"` — symbol table stripped, version supplied explicitly (not derived from the wall-clock) | `push.yaml` + `welder.yaml` `default.build.args.ld-flags` | +| **Archive metadata** | `tar --sort=name --mtime='@0' --owner=0 --group=0 --numeric-owner --mode='u=rwx,go=rx' \| gzip -9 -n` — fixed entry order, zeroed timestamps/ownership, a forced `0755` mode (independent of the builder's umask), no gzip timestamp | `push.yaml` `build sc`, `welder.yaml` `build` | +| **AI-assistant embeddings** | committed to the repo (`pkg/assistant/embeddings/vectors/`) and consumed via `go:embed`; the build never calls an external LLM | repo tree | +| **Dependencies** | module graph pinned by `go.sum`; Docker base images + GitHub Actions are SHA-pinned | `go.sum`, Dockerfiles, `.github/` | + +The only intentional build input is `VERSION` — the **bare** CalVer +value (e.g. `2026.6.20`, no `v` prefix) that the release embeds into +`internal/build.Version`. Two builds of the same commit with the same +`VERSION` are identical; the version is passed in explicitly rather than +read from the clock or the build host, so it introduces no nondeterminism. + +## Verifying reproducibility + +Use the **bare** CalVer the release embedded (the `v` prefix only ever +appears in the `-v` copy of the tarball filename, never in +`build.Version`). Build twice from a clean checkout and compare: + +```sh +git checkout +VERSION=2026.6.20 welder run build -a os=linux -a arch=amd64 # bare version +sha256sum .sc/stacks/dist/bundle/sc-linux-amd64.tar.gz + +git clean -fdx +VERSION=2026.6.20 welder run build -a os=linux -a arch=amd64 +sha256sum .sc/stacks/dist/bundle/sc-linux-amd64.tar.gz # identical digest +``` + +Or just the binary, directly with the Go toolchain (matches the flags the +release uses): + +```sh +CGO_ENABLED=0 go build -trimpath -buildvcs=false \ + -ldflags "-s -w -X=github.com/simple-container-com/api/internal/build.Version=2026.6.20" \ + -o sc ./cmd/sc +sha256sum sc +``` + +`-buildvcs=false` is required: without it `go build` either embeds the +local VCS state (diverging across checkouts) or, when run from a source +tarball with no `.git`, fails with `error obtaining VCS status`. + +To confirm a **published** release matches the source, rebuild the tag as +above and compare the rebuilt `sc--.tar.gz` digest (or the inner +binary's digest) against the release's `cosign verify-blob --bundle` / +SLSA provenance subject digest — see [`SECURITY.md`](SECURITY.md) → +"Verifying tarballs". + +## Known boundaries + +- The **Docker images** wrap the reproducible binaries; image-layer + reproducibility additionally depends on the SHA-pinned base images and + the deterministic `welder docker build` context. +- Reproducibility is asserted for the release toolchain (Linux/macOS, + amd64/arm64); each cross-build target uses the same flags per + `GOOS`/`GOARCH`. +- The deterministic archive step relies on GNU `tar` options + (`--sort`, `--mtime`, `--owner`/`--group`, `--mode`). Release archives + are produced on the Linux CI runners (GNU tar); to reproduce the + archive byte-for-byte on macOS use GNU tar (`gtar`) rather than the + bundled BSD `tar`. The binary itself reproduces with either. diff --git a/docs/embedfs.go b/docs/embedfs.go index a34e094a..ab2e5fd0 100644 --- a/docs/embedfs.go +++ b/docs/embedfs.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package docs import "embed" diff --git a/internal/build/build_info.go b/internal/build/build_info.go index e6d57144..d6995126 100644 --- a/internal/build/build_info.go +++ b/internal/build/build_info.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package build var Version string = "latest" diff --git a/pkg/api/alerts.go b/pkg/api/alerts.go index 1f6c470f..3b050b7e 100644 --- a/pkg/api/alerts.go +++ b/pkg/api/alerts.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package api type ( diff --git a/pkg/api/api_compose_test.go b/pkg/api/api_compose_test.go index 1f103600..c15468e3 100644 --- a/pkg/api/api_compose_test.go +++ b/pkg/api/api_compose_test.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package api import ( diff --git a/pkg/api/api_polish_test.go b/pkg/api/api_polish_test.go index 168e19ae..fb145210 100644 --- a/pkg/api/api_polish_test.go +++ b/pkg/api/api_polish_test.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package api import ( diff --git a/pkg/api/client.go b/pkg/api/client.go index 272fec82..7a9c37ce 100644 --- a/pkg/api/client.go +++ b/pkg/api/client.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package api import ( diff --git a/pkg/api/client_more_test.go b/pkg/api/client_more_test.go index 41c7e67e..3b0ca89a 100644 --- a/pkg/api/client_more_test.go +++ b/pkg/api/client_more_test.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package api import ( diff --git a/pkg/api/cloud_helpers.go b/pkg/api/cloud_helpers.go index b0d95f21..04ac119c 100644 --- a/pkg/api/cloud_helpers.go +++ b/pkg/api/cloud_helpers.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package api import "github.com/pkg/errors" diff --git a/pkg/api/config.go b/pkg/api/config.go index a870d964..4e5ae58e 100644 --- a/pkg/api/config.go +++ b/pkg/api/config.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package api import ( diff --git a/pkg/api/config_test.go b/pkg/api/config_test.go index 682a0e0f..24f25eeb 100644 --- a/pkg/api/config_test.go +++ b/pkg/api/config_test.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package api import ( diff --git a/pkg/api/copy.go b/pkg/api/copy.go index 294c5963..31fa862d 100644 --- a/pkg/api/copy.go +++ b/pkg/api/copy.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package api import ( diff --git a/pkg/api/copy_more_test.go b/pkg/api/copy_more_test.go index e5b44235..278c00aa 100644 --- a/pkg/api/copy_more_test.go +++ b/pkg/api/copy_more_test.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package api import ( diff --git a/pkg/api/copy_test.go b/pkg/api/copy_test.go index 38836907..71d8fb2d 100644 --- a/pkg/api/copy_test.go +++ b/pkg/api/copy_test.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package api import ( diff --git a/pkg/api/dns.go b/pkg/api/dns.go index 4877e84a..eeb84d80 100644 --- a/pkg/api/dns.go +++ b/pkg/api/dns.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package api import sdk "github.com/pulumi/pulumi/sdk/v3/go/pulumi" diff --git a/pkg/api/git/ignore.go b/pkg/api/git/ignore.go index ad3441e9..3713c8eb 100644 --- a/pkg/api/git/ignore.go +++ b/pkg/api/git/ignore.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package git import ( diff --git a/pkg/api/git/opts.go b/pkg/api/git/opts.go index 9af5984d..f6927226 100644 --- a/pkg/api/git/opts.go +++ b/pkg/api/git/opts.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package git type Option func(r *repo) error diff --git a/pkg/api/git/path_util/path_util.go b/pkg/api/git/path_util/path_util.go index c62761c1..a312732b 100644 --- a/pkg/api/git/path_util/path_util.go +++ b/pkg/api/git/path_util/path_util.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package path_util import ( diff --git a/pkg/api/git/path_util/path_util_test.go b/pkg/api/git/path_util/path_util_test.go index 6e51e188..018e388c 100644 --- a/pkg/api/git/path_util/path_util_test.go +++ b/pkg/api/git/path_util/path_util_test.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package path_util import ( diff --git a/pkg/api/git/repo.go b/pkg/api/git/repo.go index 68555b89..49b52d7c 100644 --- a/pkg/api/git/repo.go +++ b/pkg/api/git/repo.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package git import ( diff --git a/pkg/api/git/repo_lifecycle_test.go b/pkg/api/git/repo_lifecycle_test.go index 31d6bc46..ab257f0f 100644 --- a/pkg/api/git/repo_lifecycle_test.go +++ b/pkg/api/git/repo_lifecycle_test.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package git import ( diff --git a/pkg/api/git/repo_test.go b/pkg/api/git/repo_test.go index 0a1c0cff..33ad8b41 100644 --- a/pkg/api/git/repo_test.go +++ b/pkg/api/git/repo_test.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package git import ( diff --git a/pkg/api/logger/color/color.go b/pkg/api/logger/color/color.go index 8995d0ed..1cb22759 100644 --- a/pkg/api/logger/color/color.go +++ b/pkg/api/logger/color/color.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package color import "github.com/fatih/color" diff --git a/pkg/api/logger/color/color_test.go b/pkg/api/logger/color/color_test.go index 0f3081b3..037f0a3c 100644 --- a/pkg/api/logger/color/color_test.go +++ b/pkg/api/logger/color/color_test.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package color import ( diff --git a/pkg/api/logger/logger.go b/pkg/api/logger/logger.go index 44ffa24f..875cad7b 100644 --- a/pkg/api/logger/logger.go +++ b/pkg/api/logger/logger.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package logger import ( diff --git a/pkg/api/logger/logger_test.go b/pkg/api/logger/logger_test.go index d15d2e04..650a1dbf 100644 --- a/pkg/api/logger/logger_test.go +++ b/pkg/api/logger/logger_test.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package logger import ( diff --git a/pkg/api/mapping.go b/pkg/api/mapping.go index 9d953561..ca934a63 100644 --- a/pkg/api/mapping.go +++ b/pkg/api/mapping.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package api import ( diff --git a/pkg/api/mapping_read_more_test.go b/pkg/api/mapping_read_more_test.go index c2c95af5..b6fc36a9 100644 --- a/pkg/api/mapping_read_more_test.go +++ b/pkg/api/mapping_read_more_test.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package api import ( diff --git a/pkg/api/models.go b/pkg/api/models.go index 96082116..0eaf068e 100644 --- a/pkg/api/models.go +++ b/pkg/api/models.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package api import ( diff --git a/pkg/api/read.go b/pkg/api/read.go index 814e04e1..67742d88 100644 --- a/pkg/api/read.go +++ b/pkg/api/read.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package api import ( @@ -220,7 +223,7 @@ func DetectPerStackResourcesType(p *PerStackResourcesDescriptor) (*PerStackResou if err != nil { return nil, errors.Wrapf(err, "failed to read resource %q for stack %q", resourceName, stackName) } - if withDepProviders, ok := (resource.Config.Config).(WithDependencyProviders); ok { + if withDepProviders, ok := resource.Config.Config.(WithDependencyProviders); ok { depProviders := withDepProviders.DependencyProviders() for name, authCfg := range depProviders { procAuthCfg, err := DetectAuthProvider(&authCfg) diff --git a/pkg/api/secrets.go b/pkg/api/secrets.go index bd04d92d..016d0f10 100644 --- a/pkg/api/secrets.go +++ b/pkg/api/secrets.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package api import "github.com/pkg/errors" diff --git a/pkg/api/secrets/alias_deduplication_test.go b/pkg/api/secrets/alias_deduplication_test.go index b811969e..e589675f 100644 --- a/pkg/api/secrets/alias_deduplication_test.go +++ b/pkg/api/secrets/alias_deduplication_test.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package secrets import ( @@ -29,7 +32,8 @@ func TestAddPublicKeyAliasDeduplication(t *testing.T) { repo, err := git.Open(workDir, git.WithGitDir("gitdir")) Expect(err).To(BeNil()) - cryptor, err := NewCryptor(workDir, + cryptor, err := NewCryptor( + workDir, WithKeysFromScConfig("local-key-files"), WithGitRepo(repo), WithConsoleReader(mocks.consoleReaderMock), diff --git a/pkg/api/secrets/ciphers/coverage_extra_test.go b/pkg/api/secrets/ciphers/coverage_extra_test.go index 6fdbfd80..40251a60 100644 --- a/pkg/api/secrets/ciphers/coverage_extra_test.go +++ b/pkg/api/secrets/ciphers/coverage_extra_test.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package ciphers import ( diff --git a/pkg/api/secrets/ciphers/encryption.go b/pkg/api/secrets/ciphers/encryption.go index 0424338d..ec79ed6a 100644 --- a/pkg/api/secrets/ciphers/encryption.go +++ b/pkg/api/secrets/ciphers/encryption.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package ciphers import ( diff --git a/pkg/api/secrets/ciphers/encryption_extra_test.go b/pkg/api/secrets/ciphers/encryption_extra_test.go index 3c5bf6d4..1bd8b656 100644 --- a/pkg/api/secrets/ciphers/encryption_extra_test.go +++ b/pkg/api/secrets/ciphers/encryption_extra_test.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package ciphers import ( diff --git a/pkg/api/secrets/ciphers/encryption_test.go b/pkg/api/secrets/ciphers/encryption_test.go index af2d1772..dd0a0923 100644 --- a/pkg/api/secrets/ciphers/encryption_test.go +++ b/pkg/api/secrets/ciphers/encryption_test.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package ciphers import ( diff --git a/pkg/api/secrets/coverage_extra_test.go b/pkg/api/secrets/coverage_extra_test.go index 8279e61c..2c0392f4 100644 --- a/pkg/api/secrets/coverage_extra_test.go +++ b/pkg/api/secrets/coverage_extra_test.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package secrets import ( diff --git a/pkg/api/secrets/cryptor.go b/pkg/api/secrets/cryptor.go index 7c51b8ce..b1bc4cc5 100644 --- a/pkg/api/secrets/cryptor.go +++ b/pkg/api/secrets/cryptor.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package secrets import ( diff --git a/pkg/api/secrets/cryptor_test.go b/pkg/api/secrets/cryptor_test.go index 62b6ffa5..df4341cc 100644 --- a/pkg/api/secrets/cryptor_test.go +++ b/pkg/api/secrets/cryptor_test.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package secrets import ( @@ -362,7 +365,8 @@ func cloneWorkdir(c Cryptor, wd, pubKey, privKey string, m *mocks) (Cryptor, fun anotherGitRepo, err := git.New(git.WithRootDir(anotherDir)) Expect(err).To(BeNil()) Expect(anotherGitRepo.Open(anotherDir, git.WithGitDir(c.GitRepo().Gitdir()))).To(BeNil()) - anotherC, err := NewCryptor(anotherDir, + anotherC, err := NewCryptor( + anotherDir, WithPublicKey(pubKey), WithPrivateKey(privKey), WithGitRepo(anotherGitRepo), diff --git a/pkg/api/secrets/management.go b/pkg/api/secrets/management.go index 680595fb..ebdac915 100644 --- a/pkg/api/secrets/management.go +++ b/pkg/api/secrets/management.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package secrets import ( diff --git a/pkg/api/secrets/management_test.go b/pkg/api/secrets/management_test.go index 9663975c..0570942e 100644 --- a/pkg/api/secrets/management_test.go +++ b/pkg/api/secrets/management_test.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package secrets import ( diff --git a/pkg/api/secrets/opts.go b/pkg/api/secrets/opts.go index 3b1d87ac..1f94d18c 100644 --- a/pkg/api/secrets/opts.go +++ b/pkg/api/secrets/opts.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package secrets import ( diff --git a/pkg/api/secrets/util.go b/pkg/api/secrets/util.go index de0d9b60..e04c5c69 100644 --- a/pkg/api/secrets/util.go +++ b/pkg/api/secrets/util.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package secrets import ( diff --git a/pkg/api/secrets/util_test.go b/pkg/api/secrets/util_test.go index c6aef80a..0a8fa189 100644 --- a/pkg/api/secrets/util_test.go +++ b/pkg/api/secrets/util_test.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package secrets import ( diff --git a/pkg/api/security_config.go b/pkg/api/security_config.go index f372b831..a9ae1b42 100644 --- a/pkg/api/security_config.go +++ b/pkg/api/security_config.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package api // SecurityDescriptor defines security configuration for container images diff --git a/pkg/api/security_config_test.go b/pkg/api/security_config_test.go index 604db5dc..9b2ef680 100644 --- a/pkg/api/security_config_test.go +++ b/pkg/api/security_config_test.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package api import ( diff --git a/pkg/api/server.go b/pkg/api/server.go index a4835727..df867dc1 100644 --- a/pkg/api/server.go +++ b/pkg/api/server.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package api import ( diff --git a/pkg/api/testhelpers_test.go b/pkg/api/testhelpers_test.go index 61d2786e..b4766080 100644 --- a/pkg/api/testhelpers_test.go +++ b/pkg/api/testhelpers_test.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package api import ( diff --git a/pkg/api/tests/refapp.go b/pkg/api/tests/refapp.go index 3388c8f5..2b4a32ff 100644 --- a/pkg/api/tests/refapp.go +++ b/pkg/api/tests/refapp.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package tests import ( diff --git a/pkg/api/tests/refapp_aws.go b/pkg/api/tests/refapp_aws.go index 6fa2b42b..56b9bf91 100644 --- a/pkg/api/tests/refapp_aws.go +++ b/pkg/api/tests/refapp_aws.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package tests import ( diff --git a/pkg/api/tests/refapp_fs_state.go b/pkg/api/tests/refapp_fs_state.go index 0524bf07..97ec6d90 100644 --- a/pkg/api/tests/refapp_fs_state.go +++ b/pkg/api/tests/refapp_fs_state.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package tests import ( diff --git a/pkg/api/tests/refapp_gke_autopilot.go b/pkg/api/tests/refapp_gke_autopilot.go index a5ef1523..696883bc 100644 --- a/pkg/api/tests/refapp_gke_autopilot.go +++ b/pkg/api/tests/refapp_gke_autopilot.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package tests import ( diff --git a/pkg/api/tests/refapp_kubernetes.go b/pkg/api/tests/refapp_kubernetes.go index 53755e4e..ad471f04 100644 --- a/pkg/api/tests/refapp_kubernetes.go +++ b/pkg/api/tests/refapp_kubernetes.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package tests import ( diff --git a/pkg/api/tests/refapp_static_gcp.go b/pkg/api/tests/refapp_static_gcp.go index a0347701..91401eef 100644 --- a/pkg/api/tests/refapp_static_gcp.go +++ b/pkg/api/tests/refapp_static_gcp.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package tests import ( diff --git a/pkg/api/tests/refapp_test.go b/pkg/api/tests/refapp_test.go index 25380d11..5937e77e 100644 --- a/pkg/api/tests/refapp_test.go +++ b/pkg/api/tests/refapp_test.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package tests import ( diff --git a/pkg/api/tests/tests.go b/pkg/api/tests/tests.go index d917b826..8bbb016e 100644 --- a/pkg/api/tests/tests.go +++ b/pkg/api/tests/tests.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package tests import ( diff --git a/pkg/api/tests/testutil/testutil.go b/pkg/api/tests/testutil/testutil.go index 43f2c316..992ad79f 100644 --- a/pkg/api/tests/testutil/testutil.go +++ b/pkg/api/tests/testutil/testutil.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package testutil import ( diff --git a/pkg/assistant/analysis/analyzer.go b/pkg/assistant/analysis/analyzer.go index 458c42c9..5441c71a 100644 --- a/pkg/assistant/analysis/analyzer.go +++ b/pkg/assistant/analysis/analyzer.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package analysis import ( diff --git a/pkg/assistant/analysis/analyzer_test.go b/pkg/assistant/analysis/analyzer_test.go index 027811c4..5ef6cf38 100644 --- a/pkg/assistant/analysis/analyzer_test.go +++ b/pkg/assistant/analysis/analyzer_test.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package analysis import ( diff --git a/pkg/assistant/analysis/architecture_analysis.go b/pkg/assistant/analysis/architecture_analysis.go index 388d3e2a..3c60940c 100644 --- a/pkg/assistant/analysis/architecture_analysis.go +++ b/pkg/assistant/analysis/architecture_analysis.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package analysis import ( diff --git a/pkg/assistant/analysis/cache.go b/pkg/assistant/analysis/cache.go index f94fe8fb..05d85c9f 100644 --- a/pkg/assistant/analysis/cache.go +++ b/pkg/assistant/analysis/cache.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package analysis import ( diff --git a/pkg/assistant/analysis/complexity_analyzer.go b/pkg/assistant/analysis/complexity_analyzer.go index 2a40f993..2e6dddb5 100644 --- a/pkg/assistant/analysis/complexity_analyzer.go +++ b/pkg/assistant/analysis/complexity_analyzer.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package analysis import ( diff --git a/pkg/assistant/analysis/detector.go b/pkg/assistant/analysis/detector.go index 0b40ec85..84e97466 100644 --- a/pkg/assistant/analysis/detector.go +++ b/pkg/assistant/analysis/detector.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package analysis import ( diff --git a/pkg/assistant/analysis/file_analysis.go b/pkg/assistant/analysis/file_analysis.go index f2629282..141613b1 100644 --- a/pkg/assistant/analysis/file_analysis.go +++ b/pkg/assistant/analysis/file_analysis.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package analysis import ( diff --git a/pkg/assistant/analysis/filtered_detectors.go b/pkg/assistant/analysis/filtered_detectors.go index 3112cfff..89a8e01b 100644 --- a/pkg/assistant/analysis/filtered_detectors.go +++ b/pkg/assistant/analysis/filtered_detectors.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package analysis import ( diff --git a/pkg/assistant/analysis/git_analyzer.go b/pkg/assistant/analysis/git_analyzer.go index 92580ef2..14b76cfe 100644 --- a/pkg/assistant/analysis/git_analyzer.go +++ b/pkg/assistant/analysis/git_analyzer.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package analysis import ( diff --git a/pkg/assistant/analysis/llm_integration.go b/pkg/assistant/analysis/llm_integration.go index ce57910a..cc60600f 100644 --- a/pkg/assistant/analysis/llm_integration.go +++ b/pkg/assistant/analysis/llm_integration.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package analysis import ( diff --git a/pkg/assistant/analysis/progress_reporter.go b/pkg/assistant/analysis/progress_reporter.go index 56c6dcd0..09c600ae 100644 --- a/pkg/assistant/analysis/progress_reporter.go +++ b/pkg/assistant/analysis/progress_reporter.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package analysis import ( diff --git a/pkg/assistant/analysis/progress_tracker.go b/pkg/assistant/analysis/progress_tracker.go index fd3d8a83..b7e2714a 100644 --- a/pkg/assistant/analysis/progress_tracker.go +++ b/pkg/assistant/analysis/progress_tracker.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package analysis import ( diff --git a/pkg/assistant/analysis/recommendations.go b/pkg/assistant/analysis/recommendations.go index 988395c2..af5144df 100644 --- a/pkg/assistant/analysis/recommendations.go +++ b/pkg/assistant/analysis/recommendations.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package analysis import ( diff --git a/pkg/assistant/analysis/recommendations_enhanced.go b/pkg/assistant/analysis/recommendations_enhanced.go index 19f2a59f..dd990c9a 100644 --- a/pkg/assistant/analysis/recommendations_enhanced.go +++ b/pkg/assistant/analysis/recommendations_enhanced.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package analysis import ( diff --git a/pkg/assistant/analysis/report_generation.go b/pkg/assistant/analysis/report_generation.go index c2a08af8..11993294 100644 --- a/pkg/assistant/analysis/report_generation.go +++ b/pkg/assistant/analysis/report_generation.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package analysis import ( diff --git a/pkg/assistant/analysis/resource_analysis.go b/pkg/assistant/analysis/resource_analysis.go index 6c7743e1..01440644 100644 --- a/pkg/assistant/analysis/resource_analysis.go +++ b/pkg/assistant/analysis/resource_analysis.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package analysis import ( diff --git a/pkg/assistant/analysis/resource_detectors.go b/pkg/assistant/analysis/resource_detectors.go index 288bb3d8..ebc19ea1 100644 --- a/pkg/assistant/analysis/resource_detectors.go +++ b/pkg/assistant/analysis/resource_detectors.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package analysis import ( diff --git a/pkg/assistant/analysis/tech_stack_analysis.go b/pkg/assistant/analysis/tech_stack_analysis.go index eb015551..18f500ec 100644 --- a/pkg/assistant/analysis/tech_stack_analysis.go +++ b/pkg/assistant/analysis/tech_stack_analysis.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package analysis import ( diff --git a/pkg/assistant/cache/cache.go b/pkg/assistant/cache/cache.go index bce4d82f..32598db9 100644 --- a/pkg/assistant/cache/cache.go +++ b/pkg/assistant/cache/cache.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package cache import ( diff --git a/pkg/assistant/chat/commands.go b/pkg/assistant/chat/commands.go index b9a7d978..eaead5f8 100644 --- a/pkg/assistant/chat/commands.go +++ b/pkg/assistant/chat/commands.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package chat // registerCommands registers all available chat commands by delegating to specialized registration functions diff --git a/pkg/assistant/chat/commands_cicd.go b/pkg/assistant/chat/commands_cicd.go index 23f57841..4955e01d 100644 --- a/pkg/assistant/chat/commands_cicd.go +++ b/pkg/assistant/chat/commands_cicd.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package chat import ( diff --git a/pkg/assistant/chat/commands_core.go b/pkg/assistant/chat/commands_core.go index 5b1e7099..f868269a 100644 --- a/pkg/assistant/chat/commands_core.go +++ b/pkg/assistant/chat/commands_core.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package chat import ( diff --git a/pkg/assistant/chat/commands_docs.go b/pkg/assistant/chat/commands_docs.go index b9560624..77badcc6 100644 --- a/pkg/assistant/chat/commands_docs.go +++ b/pkg/assistant/chat/commands_docs.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package chat import ( diff --git a/pkg/assistant/chat/commands_llm.go b/pkg/assistant/chat/commands_llm.go index 1dc57d50..35549d38 100644 --- a/pkg/assistant/chat/commands_llm.go +++ b/pkg/assistant/chat/commands_llm.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package chat import ( diff --git a/pkg/assistant/chat/commands_project.go b/pkg/assistant/chat/commands_project.go index 67beb6d1..f0b855c3 100644 --- a/pkg/assistant/chat/commands_project.go +++ b/pkg/assistant/chat/commands_project.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package chat import ( diff --git a/pkg/assistant/chat/commands_session.go b/pkg/assistant/chat/commands_session.go index 4c1a9d25..f101aea1 100644 --- a/pkg/assistant/chat/commands_session.go +++ b/pkg/assistant/chat/commands_session.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package chat import ( diff --git a/pkg/assistant/chat/commands_stack.go b/pkg/assistant/chat/commands_stack.go index 13ba1882..6e2d4da8 100644 --- a/pkg/assistant/chat/commands_stack.go +++ b/pkg/assistant/chat/commands_stack.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package chat import ( diff --git a/pkg/assistant/chat/commands_ui.go b/pkg/assistant/chat/commands_ui.go index dce21fb6..96fe8f59 100644 --- a/pkg/assistant/chat/commands_ui.go +++ b/pkg/assistant/chat/commands_ui.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package chat import ( diff --git a/pkg/assistant/chat/input.go b/pkg/assistant/chat/input.go index 106a58ec..d7c512e6 100644 --- a/pkg/assistant/chat/input.go +++ b/pkg/assistant/chat/input.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package chat import ( diff --git a/pkg/assistant/chat/interface.go b/pkg/assistant/chat/interface.go index c1b7e3d9..bc1c724e 100644 --- a/pkg/assistant/chat/interface.go +++ b/pkg/assistant/chat/interface.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package chat import ( diff --git a/pkg/assistant/chat/markdown.go b/pkg/assistant/chat/markdown.go index 09f0fc05..2d30cb04 100644 --- a/pkg/assistant/chat/markdown.go +++ b/pkg/assistant/chat/markdown.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package chat import ( diff --git a/pkg/assistant/chat/session_history.go b/pkg/assistant/chat/session_history.go index 096eaf02..241f8a0d 100644 --- a/pkg/assistant/chat/session_history.go +++ b/pkg/assistant/chat/session_history.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package chat import ( diff --git a/pkg/assistant/chat/stream_renderer.go b/pkg/assistant/chat/stream_renderer.go index 6082b913..d8ed48a3 100644 --- a/pkg/assistant/chat/stream_renderer.go +++ b/pkg/assistant/chat/stream_renderer.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package chat import ( diff --git a/pkg/assistant/chat/theme.go b/pkg/assistant/chat/theme.go index cba3bd75..0191167f 100644 --- a/pkg/assistant/chat/theme.go +++ b/pkg/assistant/chat/theme.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package chat import ( diff --git a/pkg/assistant/chat/tool_calling.go b/pkg/assistant/chat/tool_calling.go index e5a21667..78f352f6 100644 --- a/pkg/assistant/chat/tool_calling.go +++ b/pkg/assistant/chat/tool_calling.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package chat import ( diff --git a/pkg/assistant/chat/types.go b/pkg/assistant/chat/types.go index d8eb496e..24042b7e 100644 --- a/pkg/assistant/chat/types.go +++ b/pkg/assistant/chat/types.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package chat import ( diff --git a/pkg/assistant/cicd/service.go b/pkg/assistant/cicd/service.go index c3896bb5..97b4bef0 100644 --- a/pkg/assistant/cicd/service.go +++ b/pkg/assistant/cicd/service.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package cicd import ( diff --git a/pkg/assistant/cicd/utils.go b/pkg/assistant/cicd/utils.go index b4d5e0e5..2e22d47e 100644 --- a/pkg/assistant/cicd/utils.go +++ b/pkg/assistant/cicd/utils.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package cicd import ( diff --git a/pkg/assistant/config/config.go b/pkg/assistant/config/config.go index 9deeadfb..976ae516 100644 --- a/pkg/assistant/config/config.go +++ b/pkg/assistant/config/config.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package config import ( diff --git a/pkg/assistant/configdiff/configdiff.go b/pkg/assistant/configdiff/configdiff.go index 661b1319..c12ad7a3 100644 --- a/pkg/assistant/configdiff/configdiff.go +++ b/pkg/assistant/configdiff/configdiff.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package configdiff import ( diff --git a/pkg/assistant/configdiff/configdiff_test.go b/pkg/assistant/configdiff/configdiff_test.go index 081097c6..64f2c12a 100644 --- a/pkg/assistant/configdiff/configdiff_test.go +++ b/pkg/assistant/configdiff/configdiff_test.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package configdiff import ( diff --git a/pkg/assistant/configdiff/differ.go b/pkg/assistant/configdiff/differ.go index 9a47041c..e82d27b0 100644 --- a/pkg/assistant/configdiff/differ.go +++ b/pkg/assistant/configdiff/differ.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package configdiff import ( diff --git a/pkg/assistant/configdiff/formatter.go b/pkg/assistant/configdiff/formatter.go index e72fc58f..4f05fa7b 100644 --- a/pkg/assistant/configdiff/formatter.go +++ b/pkg/assistant/configdiff/formatter.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package configdiff import ( diff --git a/pkg/assistant/configdiff/resolver.go b/pkg/assistant/configdiff/resolver.go index fcad3aa7..9301d60b 100644 --- a/pkg/assistant/configdiff/resolver.go +++ b/pkg/assistant/configdiff/resolver.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package configdiff import ( diff --git a/pkg/assistant/configdiff/types.go b/pkg/assistant/configdiff/types.go index 09970279..86124658 100644 --- a/pkg/assistant/configdiff/types.go +++ b/pkg/assistant/configdiff/types.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package configdiff import ( diff --git a/pkg/assistant/core/commands.go b/pkg/assistant/core/commands.go index ed8ea9b7..544ff9cb 100644 --- a/pkg/assistant/core/commands.go +++ b/pkg/assistant/core/commands.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package core import ( diff --git a/pkg/assistant/core/manager.go b/pkg/assistant/core/manager.go index bd3cf4a5..ef859d84 100644 --- a/pkg/assistant/core/manager.go +++ b/pkg/assistant/core/manager.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package core import ( diff --git a/pkg/assistant/embeddings/doc.go b/pkg/assistant/embeddings/doc.go index da8c9535..5d7a2006 100644 --- a/pkg/assistant/embeddings/doc.go +++ b/pkg/assistant/embeddings/doc.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + // Package embeddings provides semantic search capabilities for Simple Container documentation. // It uses chromem-go as an embedded vector database to enable AI-powered documentation search. package embeddings diff --git a/pkg/assistant/embeddings/embedded_test.go b/pkg/assistant/embeddings/embedded_test.go index 0b3800a8..251dfec6 100644 --- a/pkg/assistant/embeddings/embedded_test.go +++ b/pkg/assistant/embeddings/embedded_test.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package embeddings import ( diff --git a/pkg/assistant/embeddings/embeddings.go b/pkg/assistant/embeddings/embeddings.go index 661827ea..973f9ba5 100644 --- a/pkg/assistant/embeddings/embeddings.go +++ b/pkg/assistant/embeddings/embeddings.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package embeddings import ( diff --git a/pkg/assistant/generation/generator.go b/pkg/assistant/generation/generator.go index 6ea5b5c6..02d64a56 100644 --- a/pkg/assistant/generation/generator.go +++ b/pkg/assistant/generation/generator.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package generation import ( diff --git a/pkg/assistant/llm/anthropic.go b/pkg/assistant/llm/anthropic.go index 4dee578d..d39ed099 100644 --- a/pkg/assistant/llm/anthropic.go +++ b/pkg/assistant/llm/anthropic.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package llm import ( @@ -87,7 +90,8 @@ func (p *AnthropicProvider) Chat(ctx context.Context, messages []Message) (*Chat // Call Anthropic startTime := time.Now() - response, err := p.client.GenerateContent(ctx, llmMessages, + response, err := p.client.GenerateContent( + ctx, llmMessages, llms.WithMaxTokens(p.config.MaxTokens), llms.WithTemperature(float64(p.config.Temperature)), ) @@ -208,7 +212,8 @@ func (p *AnthropicProvider) StreamChat(ctx context.Context, messages []Message, var completionTokens int // Use streaming generation - _, err := p.client.GenerateContent(ctx, llmMessages, + _, err := p.client.GenerateContent( + ctx, llmMessages, llms.WithMaxTokens(p.config.MaxTokens), llms.WithTemperature(float64(p.config.Temperature)), llms.WithStreamingFunc(func(ctx context.Context, chunk []byte) error { diff --git a/pkg/assistant/llm/deepseek.go b/pkg/assistant/llm/deepseek.go index 8bcdbbeb..953c0fcc 100644 --- a/pkg/assistant/llm/deepseek.go +++ b/pkg/assistant/llm/deepseek.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package llm import ( @@ -132,7 +135,8 @@ func (p *DeepSeekProvider) Chat(ctx context.Context, messages []Message) (*ChatR // Call DeepSeek startTime := time.Now() - response, err := p.client.GenerateContent(ctx, llmMessages, + response, err := p.client.GenerateContent( + ctx, llmMessages, llms.WithMaxTokens(p.config.MaxTokens), llms.WithTemperature(float64(p.config.Temperature)), ) @@ -177,7 +181,8 @@ func (p *DeepSeekProvider) StreamChat(ctx context.Context, messages []Message, c var completionTokens int // Use streaming generation - _, err := p.client.GenerateContent(ctx, llmMessages, + _, err := p.client.GenerateContent( + ctx, llmMessages, llms.WithMaxTokens(p.config.MaxTokens), llms.WithTemperature(float64(p.config.Temperature)), llms.WithStreamingFunc(func(ctx context.Context, chunk []byte) error { diff --git a/pkg/assistant/llm/ollama.go b/pkg/assistant/llm/ollama.go index 9e26a956..28d29296 100644 --- a/pkg/assistant/llm/ollama.go +++ b/pkg/assistant/llm/ollama.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package llm import ( @@ -137,7 +140,8 @@ func (p *OllamaProvider) Chat(ctx context.Context, messages []Message) (*ChatRes // Call Ollama startTime := time.Now() - response, err := p.client.GenerateContent(ctx, llmMessages, + response, err := p.client.GenerateContent( + ctx, llmMessages, llms.WithMaxTokens(p.config.MaxTokens), llms.WithTemperature(float64(p.config.Temperature)), ) @@ -182,7 +186,8 @@ func (p *OllamaProvider) StreamChat(ctx context.Context, messages []Message, cal var completionTokens int // Use streaming generation - _, err := p.client.GenerateContent(ctx, llmMessages, + _, err := p.client.GenerateContent( + ctx, llmMessages, llms.WithMaxTokens(p.config.MaxTokens), llms.WithTemperature(float64(p.config.Temperature)), llms.WithStreamingFunc(func(ctx context.Context, chunk []byte) error { diff --git a/pkg/assistant/llm/openai.go b/pkg/assistant/llm/openai.go index 3f92223c..abd439f5 100644 --- a/pkg/assistant/llm/openai.go +++ b/pkg/assistant/llm/openai.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package llm import ( @@ -70,7 +73,8 @@ func (p *OpenAIProvider) Chat(ctx context.Context, messages []Message) (*ChatRes // Call OpenAI startTime := time.Now() - response, err := p.client.GenerateContent(ctx, llmMessages, + response, err := p.client.GenerateContent( + ctx, llmMessages, llms.WithMaxTokens(p.config.MaxTokens), llms.WithTemperature(getModelTemperature(p.model, p.config.Temperature)), ) @@ -186,7 +190,8 @@ func (p *OpenAIProvider) StreamChat(ctx context.Context, messages []Message, cal var completionTokens int // Use direct streaming generation (not tool-enabled path) - _, err := p.client.GenerateContent(ctx, llmMessages, + _, err := p.client.GenerateContent( + ctx, llmMessages, llms.WithMaxTokens(p.config.MaxTokens), llms.WithTemperature(float64(p.config.Temperature)), llms.WithStreamingFunc(func(ctx context.Context, chunk []byte) error { diff --git a/pkg/assistant/llm/prompts/system.go b/pkg/assistant/llm/prompts/system.go index 08263c84..f1da1fbd 100644 --- a/pkg/assistant/llm/prompts/system.go +++ b/pkg/assistant/llm/prompts/system.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package prompts import ( diff --git a/pkg/assistant/llm/provider.go b/pkg/assistant/llm/provider.go index 33750675..2fbbf2ca 100644 --- a/pkg/assistant/llm/provider.go +++ b/pkg/assistant/llm/provider.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package llm import ( @@ -284,13 +287,13 @@ func (b *BaseProvider) FallbackToNonStreaming(ctx context.Context, messages []Me // Create streaming chunk chunk := StreamChunk{ Content: currentContent.String(), - Delta: word + (func() string { + Delta: word + func() string { if i < len(words)-1 { return " " } else { return "" } - })(), + }(), IsComplete: i == len(words)-1, Usage: nil, // Usage only in final chunk Metadata: map[string]string{ diff --git a/pkg/assistant/llm/provider_test.go b/pkg/assistant/llm/provider_test.go index cb58dd41..72dcadaa 100644 --- a/pkg/assistant/llm/provider_test.go +++ b/pkg/assistant/llm/provider_test.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package llm import ( diff --git a/pkg/assistant/llm/yandex.go b/pkg/assistant/llm/yandex.go index 5e344769..9f5dc27c 100644 --- a/pkg/assistant/llm/yandex.go +++ b/pkg/assistant/llm/yandex.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package llm import ( @@ -87,7 +90,8 @@ func (p *YandexProvider) Chat(ctx context.Context, messages []Message) (*ChatRes // Call Yandex startTime := time.Now() - response, err := p.client.GenerateContent(ctx, llmMessages, + response, err := p.client.GenerateContent( + ctx, llmMessages, llms.WithMaxTokens(p.config.MaxTokens), llms.WithTemperature(float64(p.config.Temperature)), ) @@ -132,7 +136,8 @@ func (p *YandexProvider) StreamChat(ctx context.Context, messages []Message, cal var completionTokens int // Use streaming generation - _, err := p.client.GenerateContent(ctx, llmMessages, + _, err := p.client.GenerateContent( + ctx, llmMessages, llms.WithMaxTokens(p.config.MaxTokens), llms.WithTemperature(float64(p.config.Temperature)), llms.WithStreamingFunc(func(ctx context.Context, chunk []byte) error { diff --git a/pkg/assistant/mcp/logger.go b/pkg/assistant/mcp/logger.go index ba37f820..fa8f1073 100644 --- a/pkg/assistant/mcp/logger.go +++ b/pkg/assistant/mcp/logger.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package mcp import ( diff --git a/pkg/assistant/mcp/mcp_test.go b/pkg/assistant/mcp/mcp_test.go index a0c5941a..60e95aad 100644 --- a/pkg/assistant/mcp/mcp_test.go +++ b/pkg/assistant/mcp/mcp_test.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package mcp import ( diff --git a/pkg/assistant/mcp/protocol.go b/pkg/assistant/mcp/protocol.go index 98b4c55a..ebd151eb 100644 --- a/pkg/assistant/mcp/protocol.go +++ b/pkg/assistant/mcp/protocol.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package mcp import ( diff --git a/pkg/assistant/mcp/server.go b/pkg/assistant/mcp/server.go index c1d9172f..f233e4d8 100644 --- a/pkg/assistant/mcp/server.go +++ b/pkg/assistant/mcp/server.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package mcp import ( diff --git a/pkg/assistant/modes/developer.go b/pkg/assistant/modes/developer.go index d7500376..d8f80a51 100644 --- a/pkg/assistant/modes/developer.go +++ b/pkg/assistant/modes/developer.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package modes import ( @@ -1333,12 +1336,14 @@ func (d *DeveloperMode) enrichContextWithDocumentation(configType string, analys // Add language-specific queries if analysis != nil && analysis.PrimaryStack != nil { - searchQueries = append(searchQueries, + searchQueries = append( + searchQueries, fmt.Sprintf("%s client.yaml example", analysis.PrimaryStack.Language), fmt.Sprintf("%s Simple Container configuration", analysis.PrimaryStack.Language), ) if analysis.PrimaryStack.Framework != "" { - searchQueries = append(searchQueries, + searchQueries = append( + searchQueries, fmt.Sprintf("%s %s Simple Container example", analysis.PrimaryStack.Language, analysis.PrimaryStack.Framework), ) } @@ -1352,7 +1357,8 @@ func (d *DeveloperMode) enrichContextWithDocumentation(configType string, analys } if analysis != nil && analysis.PrimaryStack != nil { - searchQueries = append(searchQueries, + searchQueries = append( + searchQueries, fmt.Sprintf("%s docker-compose example", analysis.PrimaryStack.Language), fmt.Sprintf("%s containerization", analysis.PrimaryStack.Language), ) @@ -1366,7 +1372,8 @@ func (d *DeveloperMode) enrichContextWithDocumentation(configType string, analys } if analysis != nil && analysis.PrimaryStack != nil { - searchQueries = append(searchQueries, + searchQueries = append( + searchQueries, fmt.Sprintf("%s Dockerfile example", analysis.PrimaryStack.Language), fmt.Sprintf("%s container image", analysis.PrimaryStack.Language), ) diff --git a/pkg/assistant/modes/devops.go b/pkg/assistant/modes/devops.go index ddfdffb3..a840c229 100644 --- a/pkg/assistant/modes/devops.go +++ b/pkg/assistant/modes/devops.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package modes import ( diff --git a/pkg/assistant/modes/multifile.go b/pkg/assistant/modes/multifile.go index c99e7ecd..6b1843b2 100644 --- a/pkg/assistant/modes/multifile.go +++ b/pkg/assistant/modes/multifile.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package modes import ( diff --git a/pkg/assistant/modes/streaming.go b/pkg/assistant/modes/streaming.go index 92d15ee9..fd9fa0e0 100644 --- a/pkg/assistant/modes/streaming.go +++ b/pkg/assistant/modes/streaming.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package modes import ( diff --git a/pkg/assistant/modes/validation_test.go b/pkg/assistant/modes/validation_test.go index f7e87619..d50aa9fe 100644 --- a/pkg/assistant/modes/validation_test.go +++ b/pkg/assistant/modes/validation_test.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package modes import ( diff --git a/pkg/assistant/performance/profiler.go b/pkg/assistant/performance/profiler.go index 436a1454..5b8ed0be 100644 --- a/pkg/assistant/performance/profiler.go +++ b/pkg/assistant/performance/profiler.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package performance import ( diff --git a/pkg/assistant/plugins/registry.go b/pkg/assistant/plugins/registry.go index 8798700e..4be3aaba 100644 --- a/pkg/assistant/plugins/registry.go +++ b/pkg/assistant/plugins/registry.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package plugins import ( diff --git a/pkg/assistant/resources/matcher.go b/pkg/assistant/resources/matcher.go index 14c3a856..1bdfd841 100644 --- a/pkg/assistant/resources/matcher.go +++ b/pkg/assistant/resources/matcher.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package resources import ( diff --git a/pkg/assistant/security/secure_file_reader.go b/pkg/assistant/security/secure_file_reader.go index fa161f60..488d4ea8 100644 --- a/pkg/assistant/security/secure_file_reader.go +++ b/pkg/assistant/security/secure_file_reader.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package security import ( diff --git a/pkg/assistant/security/security.go b/pkg/assistant/security/security.go index f66459d4..7493ad57 100644 --- a/pkg/assistant/security/security.go +++ b/pkg/assistant/security/security.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package security import ( diff --git a/pkg/assistant/testing/framework.go b/pkg/assistant/testing/framework.go index 26ba3616..dc7302fb 100644 --- a/pkg/assistant/testing/framework.go +++ b/pkg/assistant/testing/framework.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package testing import ( diff --git a/pkg/assistant/utils/project_utils.go b/pkg/assistant/utils/project_utils.go index d40be3d6..88644639 100644 --- a/pkg/assistant/utils/project_utils.go +++ b/pkg/assistant/utils/project_utils.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package utils import ( diff --git a/pkg/assistant/utils/project_utils_test.go b/pkg/assistant/utils/project_utils_test.go index 1961f737..73cd8f39 100644 --- a/pkg/assistant/utils/project_utils_test.go +++ b/pkg/assistant/utils/project_utils_test.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package utils import ( diff --git a/pkg/assistant/validation/validator.go b/pkg/assistant/validation/validator.go index 22f7acdc..c4331dc7 100644 --- a/pkg/assistant/validation/validator.go +++ b/pkg/assistant/validation/validator.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package validation import ( diff --git a/pkg/clouds/aws/auth.go b/pkg/clouds/aws/auth.go index 58b419ac..fd432184 100644 --- a/pkg/clouds/aws/auth.go +++ b/pkg/clouds/aws/auth.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package aws import ( diff --git a/pkg/clouds/aws/auth_test.go b/pkg/clouds/aws/auth_test.go index 0f123958..52497bd6 100644 --- a/pkg/clouds/aws/auth_test.go +++ b/pkg/clouds/aws/auth_test.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package aws import ( diff --git a/pkg/clouds/aws/aws.go b/pkg/clouds/aws/aws.go index d1250d7f..de3652bd 100644 --- a/pkg/clouds/aws/aws.go +++ b/pkg/clouds/aws/aws.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package aws import "github.com/simple-container-com/api/pkg/api" diff --git a/pkg/clouds/aws/aws_lambda.go b/pkg/clouds/aws/aws_lambda.go index 0f7f534d..5a871367 100644 --- a/pkg/clouds/aws/aws_lambda.go +++ b/pkg/clouds/aws/aws_lambda.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package aws import ( diff --git a/pkg/clouds/aws/bucket.go b/pkg/clouds/aws/bucket.go index e3f63d3c..6ffb72dc 100644 --- a/pkg/clouds/aws/bucket.go +++ b/pkg/clouds/aws/bucket.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package aws import "github.com/simple-container-com/api/pkg/api" diff --git a/pkg/clouds/aws/cloudtrail_security_alerts.go b/pkg/clouds/aws/cloudtrail_security_alerts.go index 0c3ed04b..984732a5 100644 --- a/pkg/clouds/aws/cloudtrail_security_alerts.go +++ b/pkg/clouds/aws/cloudtrail_security_alerts.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package aws import "github.com/simple-container-com/api/pkg/api" diff --git a/pkg/clouds/aws/cloudtrail_security_alerts_test.go b/pkg/clouds/aws/cloudtrail_security_alerts_test.go index 37495dea..466d1c5d 100644 --- a/pkg/clouds/aws/cloudtrail_security_alerts_test.go +++ b/pkg/clouds/aws/cloudtrail_security_alerts_test.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package aws import ( diff --git a/pkg/clouds/aws/converters_test.go b/pkg/clouds/aws/converters_test.go index d53a8145..f4eeaca4 100644 --- a/pkg/clouds/aws/converters_test.go +++ b/pkg/clouds/aws/converters_test.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package aws import ( diff --git a/pkg/clouds/aws/ecr_repository.go b/pkg/clouds/aws/ecr_repository.go index f188b6df..26963bce 100644 --- a/pkg/clouds/aws/ecr_repository.go +++ b/pkg/clouds/aws/ecr_repository.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package aws import "github.com/simple-container-com/api/pkg/api" diff --git a/pkg/clouds/aws/ecs_fargate.go b/pkg/clouds/aws/ecs_fargate.go index 515a1412..e180febd 100644 --- a/pkg/clouds/aws/ecs_fargate.go +++ b/pkg/clouds/aws/ecs_fargate.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package aws import ( @@ -349,7 +352,8 @@ func toDependsOn(on types.DependsOnConfig) []EcsFargateDependsOn { return EcsFargateDependsOn{ Container: key, Condition: lo.If(value.Condition == "service_healthy", "HEALTHY").Else( - lo.If(value.Condition == "service_started", "START").Else("HEALTHY")), + lo.If(value.Condition == "service_started", "START").Else("HEALTHY"), + ), } }) } diff --git a/pkg/clouds/aws/ecs_fargate_helpers_test.go b/pkg/clouds/aws/ecs_fargate_helpers_test.go index f7d3c149..0bc6cfa8 100644 --- a/pkg/clouds/aws/ecs_fargate_helpers_test.go +++ b/pkg/clouds/aws/ecs_fargate_helpers_test.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package aws import ( diff --git a/pkg/clouds/aws/helpers/ch_cloudwatch_alert.go b/pkg/clouds/aws/helpers/ch_cloudwatch_alert.go index 10baed80..f842194f 100644 --- a/pkg/clouds/aws/helpers/ch_cloudwatch_alert.go +++ b/pkg/clouds/aws/helpers/ch_cloudwatch_alert.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package helpers import ( diff --git a/pkg/clouds/aws/helpers/ch_cloudwatch_alert_test.go b/pkg/clouds/aws/helpers/ch_cloudwatch_alert_test.go index 39c3481c..c669d161 100644 --- a/pkg/clouds/aws/helpers/ch_cloudwatch_alert_test.go +++ b/pkg/clouds/aws/helpers/ch_cloudwatch_alert_test.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package helpers import ( diff --git a/pkg/clouds/aws/helpers/ch_healthevent_trigger.go b/pkg/clouds/aws/helpers/ch_healthevent_trigger.go index be46c268..2a4cdf7a 100644 --- a/pkg/clouds/aws/helpers/ch_healthevent_trigger.go +++ b/pkg/clouds/aws/helpers/ch_healthevent_trigger.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package helpers import ( diff --git a/pkg/clouds/aws/helpers/config_cache_test.go b/pkg/clouds/aws/helpers/config_cache_test.go index ab00db74..2d96c9ae 100644 --- a/pkg/clouds/aws/helpers/config_cache_test.go +++ b/pkg/clouds/aws/helpers/config_cache_test.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package helpers import ( diff --git a/pkg/clouds/aws/helpers/ct_enrichment.go b/pkg/clouds/aws/helpers/ct_enrichment.go index 93c12e14..b7fa4105 100644 --- a/pkg/clouds/aws/helpers/ct_enrichment.go +++ b/pkg/clouds/aws/helpers/ct_enrichment.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package helpers import ( diff --git a/pkg/clouds/aws/helpers/ct_enrichment_test.go b/pkg/clouds/aws/helpers/ct_enrichment_test.go index 18f4d884..832238f6 100644 --- a/pkg/clouds/aws/helpers/ct_enrichment_test.go +++ b/pkg/clouds/aws/helpers/ct_enrichment_test.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package helpers import ( diff --git a/pkg/clouds/aws/helpers/healthevent_log_test.go b/pkg/clouds/aws/helpers/healthevent_log_test.go index 23293776..4f31c77b 100644 --- a/pkg/clouds/aws/helpers/healthevent_log_test.go +++ b/pkg/clouds/aws/helpers/healthevent_log_test.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package helpers import ( diff --git a/pkg/clouds/aws/helpers/helpers_more_test.go b/pkg/clouds/aws/helpers/helpers_more_test.go index f63f1b73..72576d07 100644 --- a/pkg/clouds/aws/helpers/helpers_more_test.go +++ b/pkg/clouds/aws/helpers/helpers_more_test.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package helpers import ( diff --git a/pkg/clouds/aws/helpers/log_safe.go b/pkg/clouds/aws/helpers/log_safe.go index 363125e2..e588ad5d 100644 --- a/pkg/clouds/aws/helpers/log_safe.go +++ b/pkg/clouds/aws/helpers/log_safe.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package helpers import ( diff --git a/pkg/clouds/aws/init.go b/pkg/clouds/aws/init.go index 22cd4844..923d2cd5 100644 --- a/pkg/clouds/aws/init.go +++ b/pkg/clouds/aws/init.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package aws import ( diff --git a/pkg/clouds/aws/rds_mysql.go b/pkg/clouds/aws/rds_mysql.go index 574526e3..93f30df8 100644 --- a/pkg/clouds/aws/rds_mysql.go +++ b/pkg/clouds/aws/rds_mysql.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package aws import ( diff --git a/pkg/clouds/aws/rds_postgres.go b/pkg/clouds/aws/rds_postgres.go index 7ee3d037..c619af2e 100644 --- a/pkg/clouds/aws/rds_postgres.go +++ b/pkg/clouds/aws/rds_postgres.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package aws import ( diff --git a/pkg/clouds/aws/rds_storage_encrypted_test.go b/pkg/clouds/aws/rds_storage_encrypted_test.go index 0eb8a432..0c53dc73 100644 --- a/pkg/clouds/aws/rds_storage_encrypted_test.go +++ b/pkg/clouds/aws/rds_storage_encrypted_test.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package aws import ( diff --git a/pkg/clouds/aws/static_website.go b/pkg/clouds/aws/static_website.go index 20ced930..f1ff070c 100644 --- a/pkg/clouds/aws/static_website.go +++ b/pkg/clouds/aws/static_website.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package aws import ( diff --git a/pkg/clouds/cloudflare/cloudflare.go b/pkg/clouds/cloudflare/cloudflare.go index 0210dfe7..00ccbe56 100644 --- a/pkg/clouds/cloudflare/cloudflare.go +++ b/pkg/clouds/cloudflare/cloudflare.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package cloudflare import "github.com/simple-container-com/api/pkg/api" diff --git a/pkg/clouds/cloudflare/cloudflare_test.go b/pkg/clouds/cloudflare/cloudflare_test.go index 185a5e86..3c2d5467 100644 --- a/pkg/clouds/cloudflare/cloudflare_test.go +++ b/pkg/clouds/cloudflare/cloudflare_test.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package cloudflare import ( diff --git a/pkg/clouds/cloudflare/init.go b/pkg/clouds/cloudflare/init.go index ed173bee..4a612d0e 100644 --- a/pkg/clouds/cloudflare/init.go +++ b/pkg/clouds/cloudflare/init.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package cloudflare import ( diff --git a/pkg/clouds/compose/compose.go b/pkg/clouds/compose/compose.go index 77f7e9b7..6a9e047f 100644 --- a/pkg/clouds/compose/compose.go +++ b/pkg/clouds/compose/compose.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package compose import ( diff --git a/pkg/clouds/compose/compose_test.go b/pkg/clouds/compose/compose_test.go index 158c01bd..148f0e21 100644 --- a/pkg/clouds/compose/compose_test.go +++ b/pkg/clouds/compose/compose_test.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package compose import ( diff --git a/pkg/clouds/discord/discord_alert.go b/pkg/clouds/discord/discord_alert.go index 43adbbf3..160c3d76 100644 --- a/pkg/clouds/discord/discord_alert.go +++ b/pkg/clouds/discord/discord_alert.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package discord import ( diff --git a/pkg/clouds/discord/discord_alert_test.go b/pkg/clouds/discord/discord_alert_test.go index cc98f25f..03dc8de4 100644 --- a/pkg/clouds/discord/discord_alert_test.go +++ b/pkg/clouds/discord/discord_alert_test.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package discord import ( diff --git a/pkg/clouds/discord/discord_send_test.go b/pkg/clouds/discord/discord_send_test.go index 746bce95..b4a5142a 100644 --- a/pkg/clouds/discord/discord_send_test.go +++ b/pkg/clouds/discord/discord_send_test.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package discord import ( diff --git a/pkg/clouds/docker/types.go b/pkg/clouds/docker/types.go index 86063f96..8f1c570a 100644 --- a/pkg/clouds/docker/types.go +++ b/pkg/clouds/docker/types.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package docker import ( diff --git a/pkg/clouds/docker/types_test.go b/pkg/clouds/docker/types_test.go index f0baf802..59775945 100644 --- a/pkg/clouds/docker/types_test.go +++ b/pkg/clouds/docker/types_test.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package docker import ( diff --git a/pkg/clouds/fs/fs_state.go b/pkg/clouds/fs/fs_state.go index 9b2360b2..be42088e 100644 --- a/pkg/clouds/fs/fs_state.go +++ b/pkg/clouds/fs/fs_state.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package fs const ( diff --git a/pkg/clouds/fs/fs_state_test.go b/pkg/clouds/fs/fs_state_test.go index 94e14c9a..69720470 100644 --- a/pkg/clouds/fs/fs_state_test.go +++ b/pkg/clouds/fs/fs_state_test.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package fs import ( diff --git a/pkg/clouds/fs/init.go b/pkg/clouds/fs/init.go index 96c88317..7cee5141 100644 --- a/pkg/clouds/fs/init.go +++ b/pkg/clouds/fs/init.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package fs import ( diff --git a/pkg/clouds/gcloud/artifactregistry.go b/pkg/clouds/gcloud/artifactregistry.go index 60959838..57bbc4c2 100644 --- a/pkg/clouds/gcloud/artifactregistry.go +++ b/pkg/clouds/gcloud/artifactregistry.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package gcloud import "github.com/simple-container-com/api/pkg/api" diff --git a/pkg/clouds/gcloud/auth.go b/pkg/clouds/gcloud/auth.go index 6617badf..161c87e1 100644 --- a/pkg/clouds/gcloud/auth.go +++ b/pkg/clouds/gcloud/auth.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package gcloud import ( diff --git a/pkg/clouds/gcloud/auth_test.go b/pkg/clouds/gcloud/auth_test.go index e3e6372e..259e5c00 100644 --- a/pkg/clouds/gcloud/auth_test.go +++ b/pkg/clouds/gcloud/auth_test.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package gcloud import ( diff --git a/pkg/clouds/gcloud/bucket.go b/pkg/clouds/gcloud/bucket.go index 450d10a2..efef5f06 100644 --- a/pkg/clouds/gcloud/bucket.go +++ b/pkg/clouds/gcloud/bucket.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package gcloud import "github.com/simple-container-com/api/pkg/api" diff --git a/pkg/clouds/gcloud/cloudrun.go b/pkg/clouds/gcloud/cloudrun.go index e5d53346..f7e699f9 100644 --- a/pkg/clouds/gcloud/cloudrun.go +++ b/pkg/clouds/gcloud/cloudrun.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package gcloud import ( diff --git a/pkg/clouds/gcloud/cloudrun_test.go b/pkg/clouds/gcloud/cloudrun_test.go index ee9c46aa..4bc35693 100644 --- a/pkg/clouds/gcloud/cloudrun_test.go +++ b/pkg/clouds/gcloud/cloudrun_test.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package gcloud import ( diff --git a/pkg/clouds/gcloud/converters_test.go b/pkg/clouds/gcloud/converters_test.go index 1a476295..4ba7a5f8 100644 --- a/pkg/clouds/gcloud/converters_test.go +++ b/pkg/clouds/gcloud/converters_test.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package gcloud import ( diff --git a/pkg/clouds/gcloud/gcloud.go b/pkg/clouds/gcloud/gcloud.go index 0878a445..5bc0bc65 100644 --- a/pkg/clouds/gcloud/gcloud.go +++ b/pkg/clouds/gcloud/gcloud.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package gcloud import "github.com/simple-container-com/api/pkg/api" diff --git a/pkg/clouds/gcloud/gke_autopilot.go b/pkg/clouds/gcloud/gke_autopilot.go index f4e5defa..be909177 100644 --- a/pkg/clouds/gcloud/gke_autopilot.go +++ b/pkg/clouds/gcloud/gke_autopilot.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package gcloud import ( diff --git a/pkg/clouds/gcloud/init.go b/pkg/clouds/gcloud/init.go index 74480910..d64f13c1 100644 --- a/pkg/clouds/gcloud/init.go +++ b/pkg/clouds/gcloud/init.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package gcloud import ( diff --git a/pkg/clouds/gcloud/postgres.go b/pkg/clouds/gcloud/postgres.go index dff613d2..49910884 100644 --- a/pkg/clouds/gcloud/postgres.go +++ b/pkg/clouds/gcloud/postgres.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package gcloud import "github.com/simple-container-com/api/pkg/api" diff --git a/pkg/clouds/gcloud/pubsub.go b/pkg/clouds/gcloud/pubsub.go index 1aa5561e..baca69fa 100644 --- a/pkg/clouds/gcloud/pubsub.go +++ b/pkg/clouds/gcloud/pubsub.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package gcloud import ( diff --git a/pkg/clouds/gcloud/redis.go b/pkg/clouds/gcloud/redis.go index aaac5b72..0d5d897d 100644 --- a/pkg/clouds/gcloud/redis.go +++ b/pkg/clouds/gcloud/redis.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package gcloud import "github.com/simple-container-com/api/pkg/api" diff --git a/pkg/clouds/gcloud/resources_test.go b/pkg/clouds/gcloud/resources_test.go index c2fadf54..40c94506 100644 --- a/pkg/clouds/gcloud/resources_test.go +++ b/pkg/clouds/gcloud/resources_test.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package gcloud import ( diff --git a/pkg/clouds/gcloud/static_website.go b/pkg/clouds/gcloud/static_website.go index 6f9f1095..4eb76e84 100644 --- a/pkg/clouds/gcloud/static_website.go +++ b/pkg/clouds/gcloud/static_website.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package gcloud import ( diff --git a/pkg/clouds/gcloud/topology_spread_test.go b/pkg/clouds/gcloud/topology_spread_test.go index 745b5318..2c03219d 100644 --- a/pkg/clouds/gcloud/topology_spread_test.go +++ b/pkg/clouds/gcloud/topology_spread_test.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package gcloud import ( diff --git a/pkg/clouds/github/cicd_config.go b/pkg/clouds/github/cicd_config.go index a5b2ab9d..76bf0f1a 100644 --- a/pkg/clouds/github/cicd_config.go +++ b/pkg/clouds/github/cicd_config.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package github import ( diff --git a/pkg/clouds/github/cicd_config_test.go b/pkg/clouds/github/cicd_config_test.go index e2886f14..c854e6a1 100644 --- a/pkg/clouds/github/cicd_config_test.go +++ b/pkg/clouds/github/cicd_config_test.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package github import ( diff --git a/pkg/clouds/github/enhanced_config.go b/pkg/clouds/github/enhanced_config.go index 45b644de..4c6aa085 100644 --- a/pkg/clouds/github/enhanced_config.go +++ b/pkg/clouds/github/enhanced_config.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package github import ( diff --git a/pkg/clouds/github/github_actions.go b/pkg/clouds/github/github_actions.go index 99b80fde..0d5cf0a3 100644 --- a/pkg/clouds/github/github_actions.go +++ b/pkg/clouds/github/github_actions.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package github import "github.com/simple-container-com/api/pkg/api" diff --git a/pkg/clouds/github/github_test.go b/pkg/clouds/github/github_test.go index 130c7d99..ab16587c 100644 --- a/pkg/clouds/github/github_test.go +++ b/pkg/clouds/github/github_test.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package github import ( diff --git a/pkg/clouds/github/init.go b/pkg/clouds/github/init.go index 46118d40..818ca6cf 100644 --- a/pkg/clouds/github/init.go +++ b/pkg/clouds/github/init.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package github import ( diff --git a/pkg/clouds/github/templates.go b/pkg/clouds/github/templates.go index a5cf91e4..c4ab65db 100644 --- a/pkg/clouds/github/templates.go +++ b/pkg/clouds/github/templates.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package github // Embedded workflow templates for GitHub Actions generation diff --git a/pkg/clouds/github/workflow_errors_test.go b/pkg/clouds/github/workflow_errors_test.go index b831152b..57bc2eee 100644 --- a/pkg/clouds/github/workflow_errors_test.go +++ b/pkg/clouds/github/workflow_errors_test.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package github import ( diff --git a/pkg/clouds/github/workflow_generator.go b/pkg/clouds/github/workflow_generator.go index 0f40c563..df611857 100644 --- a/pkg/clouds/github/workflow_generator.go +++ b/pkg/clouds/github/workflow_generator.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package github import ( diff --git a/pkg/clouds/github/workflow_generator_test.go b/pkg/clouds/github/workflow_generator_test.go index 16dd0e1f..16a6064d 100644 --- a/pkg/clouds/github/workflow_generator_test.go +++ b/pkg/clouds/github/workflow_generator_test.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package github import ( diff --git a/pkg/clouds/k8s/auth.go b/pkg/clouds/k8s/auth.go index b89b9adf..182b29b3 100644 --- a/pkg/clouds/k8s/auth.go +++ b/pkg/clouds/k8s/auth.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package k8s import ( diff --git a/pkg/clouds/k8s/caddy.go b/pkg/clouds/k8s/caddy.go index 2b98781a..d5f7baad 100644 --- a/pkg/clouds/k8s/caddy.go +++ b/pkg/clouds/k8s/caddy.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package k8s import "github.com/simple-container-com/api/pkg/api" diff --git a/pkg/clouds/k8s/config_readers_test.go b/pkg/clouds/k8s/config_readers_test.go index b58e0506..89fd3e60 100644 --- a/pkg/clouds/k8s/config_readers_test.go +++ b/pkg/clouds/k8s/config_readers_test.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package k8s import ( diff --git a/pkg/clouds/k8s/containers_test.go b/pkg/clouds/k8s/containers_test.go index 86417627..f2f8f65d 100644 --- a/pkg/clouds/k8s/containers_test.go +++ b/pkg/clouds/k8s/containers_test.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package k8s import ( diff --git a/pkg/clouds/k8s/hpa_test.go b/pkg/clouds/k8s/hpa_test.go index 89ec2275..c71298e9 100644 --- a/pkg/clouds/k8s/hpa_test.go +++ b/pkg/clouds/k8s/hpa_test.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package k8s import ( diff --git a/pkg/clouds/k8s/init.go b/pkg/clouds/k8s/init.go index 3b1353b8..3a4cdb1b 100644 --- a/pkg/clouds/k8s/init.go +++ b/pkg/clouds/k8s/init.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package k8s import ( diff --git a/pkg/clouds/k8s/kube_run.go b/pkg/clouds/k8s/kube_run.go index e3ef9a46..9a590133 100644 --- a/pkg/clouds/k8s/kube_run.go +++ b/pkg/clouds/k8s/kube_run.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package k8s import ( diff --git a/pkg/clouds/k8s/kube_run_extra_test.go b/pkg/clouds/k8s/kube_run_extra_test.go index d6165e14..71bf3b87 100644 --- a/pkg/clouds/k8s/kube_run_extra_test.go +++ b/pkg/clouds/k8s/kube_run_extra_test.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package k8s import ( diff --git a/pkg/clouds/k8s/kube_run_priority_test.go b/pkg/clouds/k8s/kube_run_priority_test.go index 96a197b3..1190d09a 100644 --- a/pkg/clouds/k8s/kube_run_priority_test.go +++ b/pkg/clouds/k8s/kube_run_priority_test.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package k8s import ( diff --git a/pkg/clouds/k8s/kube_run_probe_test.go b/pkg/clouds/k8s/kube_run_probe_test.go index d79f1a5a..abcdddbe 100644 --- a/pkg/clouds/k8s/kube_run_probe_test.go +++ b/pkg/clouds/k8s/kube_run_probe_test.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package k8s import ( diff --git a/pkg/clouds/k8s/postgres.go b/pkg/clouds/k8s/postgres.go index 176ead60..66681fc8 100644 --- a/pkg/clouds/k8s/postgres.go +++ b/pkg/clouds/k8s/postgres.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package k8s import ( diff --git a/pkg/clouds/k8s/postgres_test.go b/pkg/clouds/k8s/postgres_test.go index c90c37ab..0d8562da 100644 --- a/pkg/clouds/k8s/postgres_test.go +++ b/pkg/clouds/k8s/postgres_test.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package k8s import ( diff --git a/pkg/clouds/k8s/templates.go b/pkg/clouds/k8s/templates.go index 71a2d642..de84b70a 100644 --- a/pkg/clouds/k8s/templates.go +++ b/pkg/clouds/k8s/templates.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package k8s import ( diff --git a/pkg/clouds/k8s/topology_spread_test.go b/pkg/clouds/k8s/topology_spread_test.go index d23a5977..349e232a 100644 --- a/pkg/clouds/k8s/topology_spread_test.go +++ b/pkg/clouds/k8s/topology_spread_test.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package k8s import ( diff --git a/pkg/clouds/k8s/types.go b/pkg/clouds/k8s/types.go index e905bd33..279bb178 100644 --- a/pkg/clouds/k8s/types.go +++ b/pkg/clouds/k8s/types.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package k8s import ( diff --git a/pkg/clouds/k8s/types_conversion_test.go b/pkg/clouds/k8s/types_conversion_test.go index 414b666b..9e24b100 100644 --- a/pkg/clouds/k8s/types_conversion_test.go +++ b/pkg/clouds/k8s/types_conversion_test.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package k8s import ( diff --git a/pkg/clouds/k8s/types_test.go b/pkg/clouds/k8s/types_test.go index dea2e841..662148ff 100644 --- a/pkg/clouds/k8s/types_test.go +++ b/pkg/clouds/k8s/types_test.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package k8s import ( diff --git a/pkg/clouds/mongodb/init.go b/pkg/clouds/mongodb/init.go index b95ee99e..1eb66363 100644 --- a/pkg/clouds/mongodb/init.go +++ b/pkg/clouds/mongodb/init.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package mongodb import ( diff --git a/pkg/clouds/mongodb/mongodb.go b/pkg/clouds/mongodb/mongodb.go index 3a640fd2..9dd07f04 100644 --- a/pkg/clouds/mongodb/mongodb.go +++ b/pkg/clouds/mongodb/mongodb.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package mongodb import "github.com/simple-container-com/api/pkg/api" diff --git a/pkg/clouds/mongodb/mongodb_test.go b/pkg/clouds/mongodb/mongodb_test.go index 62eeabfd..8eae8158 100644 --- a/pkg/clouds/mongodb/mongodb_test.go +++ b/pkg/clouds/mongodb/mongodb_test.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package mongodb import ( diff --git a/pkg/clouds/pulumi/api/cloud_provider.go b/pkg/clouds/pulumi/api/cloud_provider.go index f7c3ac04..3c6f15fa 100644 --- a/pkg/clouds/pulumi/api/cloud_provider.go +++ b/pkg/clouds/pulumi/api/cloud_provider.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package api import ( diff --git a/pkg/clouds/pulumi/api/compute_context.go b/pkg/clouds/pulumi/api/compute_context.go index 676064ef..c51ddea3 100644 --- a/pkg/clouds/pulumi/api/compute_context.go +++ b/pkg/clouds/pulumi/api/compute_context.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package api import ( diff --git a/pkg/clouds/pulumi/api/mapping.go b/pkg/clouds/pulumi/api/mapping.go index 86d4520c..b4b33f3f 100644 --- a/pkg/clouds/pulumi/api/mapping.go +++ b/pkg/clouds/pulumi/api/mapping.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package api import ( diff --git a/pkg/clouds/pulumi/api/registrar.go b/pkg/clouds/pulumi/api/registrar.go index 96731631..593e9972 100644 --- a/pkg/clouds/pulumi/api/registrar.go +++ b/pkg/clouds/pulumi/api/registrar.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package api import ( diff --git a/pkg/clouds/pulumi/api/tagging.go b/pkg/clouds/pulumi/api/tagging.go index 65ee16fb..c8a46989 100644 --- a/pkg/clouds/pulumi/api/tagging.go +++ b/pkg/clouds/pulumi/api/tagging.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package api import ( diff --git a/pkg/clouds/pulumi/api/util.go b/pkg/clouds/pulumi/api/util.go index 6a737a8a..05cba2bf 100644 --- a/pkg/clouds/pulumi/api/util.go +++ b/pkg/clouds/pulumi/api/util.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package api import ( diff --git a/pkg/clouds/pulumi/auth.go b/pkg/clouds/pulumi/auth.go index a9f92864..ba7d2030 100644 --- a/pkg/clouds/pulumi/auth.go +++ b/pkg/clouds/pulumi/auth.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package pulumi import ( diff --git a/pkg/clouds/pulumi/aws/alerts.go b/pkg/clouds/pulumi/aws/alerts.go index c6441a0f..32ea0ce5 100644 --- a/pkg/clouds/pulumi/aws/alerts.go +++ b/pkg/clouds/pulumi/aws/alerts.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package aws import ( @@ -260,7 +263,8 @@ func createAlert(ctx *sdk.Context, cfg alertCfg) error { } if cfg.discordConfig != nil { - if s, err := createSecret(ctx, + if s, err := createSecret( + ctx, toSecretName(cfg.deployParams, "alert", cfg.name, api.ComputeEnv.DiscordWebhookUrl, cfg.secretSuffix), api.ComputeEnv.DiscordWebhookUrl, cfg.discordConfig.WebhookUrl, cfg.tags, cfg.opts..., ); err != nil { @@ -271,7 +275,8 @@ func createAlert(ctx *sdk.Context, cfg alertCfg) error { } if cfg.slackConfig != nil { - if s, err := createSecret(ctx, + if s, err := createSecret( + ctx, toSecretName(cfg.deployParams, "alert", cfg.name, api.ComputeEnv.SlackWebhookUrl, cfg.secretSuffix), api.ComputeEnv.SlackWebhookUrl, cfg.slackConfig.WebhookUrl, cfg.tags, cfg.opts..., ); err != nil { @@ -282,7 +287,8 @@ func createAlert(ctx *sdk.Context, cfg alertCfg) error { } if cfg.telegramConfig != nil { - if s, err := createSecret(ctx, + if s, err := createSecret( + ctx, toSecretName(cfg.deployParams, "alert", cfg.name, api.ComputeEnv.TelegramToken, cfg.secretSuffix), api.ComputeEnv.TelegramToken, cfg.telegramConfig.Token, cfg.tags, cfg.opts..., ); err != nil { diff --git a/pkg/clouds/pulumi/aws/alerts_test.go b/pkg/clouds/pulumi/aws/alerts_test.go index 39f13f1f..59ed477c 100644 --- a/pkg/clouds/pulumi/aws/alerts_test.go +++ b/pkg/clouds/pulumi/aws/alerts_test.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package aws import ( diff --git a/pkg/clouds/pulumi/aws/aws_lambda.go b/pkg/clouds/pulumi/aws/aws_lambda.go index 1b494030..b631b190 100644 --- a/pkg/clouds/pulumi/aws/aws_lambda.go +++ b/pkg/clouds/pulumi/aws/aws_lambda.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package aws import ( diff --git a/pkg/clouds/pulumi/aws/bucket.go b/pkg/clouds/pulumi/aws/bucket.go index 3306c590..db1b17a8 100644 --- a/pkg/clouds/pulumi/aws/bucket.go +++ b/pkg/clouds/pulumi/aws/bucket.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package aws import ( diff --git a/pkg/clouds/pulumi/aws/cloudtrail_security_alerts.go b/pkg/clouds/pulumi/aws/cloudtrail_security_alerts.go index adc66a1c..ac3e23ff 100644 --- a/pkg/clouds/pulumi/aws/cloudtrail_security_alerts.go +++ b/pkg/clouds/pulumi/aws/cloudtrail_security_alerts.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package aws import ( diff --git a/pkg/clouds/pulumi/aws/cloudtrail_security_alerts_test.go b/pkg/clouds/pulumi/aws/cloudtrail_security_alerts_test.go index 38328a3c..026d42a3 100644 --- a/pkg/clouds/pulumi/aws/cloudtrail_security_alerts_test.go +++ b/pkg/clouds/pulumi/aws/cloudtrail_security_alerts_test.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package aws import ( @@ -92,7 +95,8 @@ func TestConsoleLoginWithoutMfa_RestrictedToIAMUser(t *testing.T) { // this well-known false positive. RegisterTestingT(t) Expect(securityAlerts["consoleLoginWithoutMfa"].filterPattern).To( - ContainSubstring(`$.userIdentity.type = "IAMUser"`)) + ContainSubstring(`$.userIdentity.type = "IAMUser"`), + ) } func TestAnonymousProbes_DefaultThreshold(t *testing.T) { @@ -335,6 +339,7 @@ func TestApplyOverride_EmptyOverrideIsNoop(t *testing.T) { // - leading/trailing whitespace inside the braces (idiomatic indentation), // - internal parentheses from existing OR-groups, // - mixed AND/OR/&& at the top level. +// // If a future contributor writes a pattern with leading whitespace or extra braces, // the wrap output should still be syntactically valid CloudWatch. func TestApplyOverride_WorstCaseBasePattern(t *testing.T) { diff --git a/pkg/clouds/pulumi/aws/cloudtrail_validation.go b/pkg/clouds/pulumi/aws/cloudtrail_validation.go index 183def66..faabd0ca 100644 --- a/pkg/clouds/pulumi/aws/cloudtrail_validation.go +++ b/pkg/clouds/pulumi/aws/cloudtrail_validation.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package aws import ( diff --git a/pkg/clouds/pulumi/aws/cloudtrail_validation_test.go b/pkg/clouds/pulumi/aws/cloudtrail_validation_test.go index 90d05193..208fea1e 100644 --- a/pkg/clouds/pulumi/aws/cloudtrail_validation_test.go +++ b/pkg/clouds/pulumi/aws/cloudtrail_validation_test.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package aws import ( diff --git a/pkg/clouds/pulumi/aws/compute_proc.go b/pkg/clouds/pulumi/aws/compute_proc.go index 8051634f..177cfa2b 100644 --- a/pkg/clouds/pulumi/aws/compute_proc.go +++ b/pkg/clouds/pulumi/aws/compute_proc.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package aws import ( diff --git a/pkg/clouds/pulumi/aws/cw_dashboard.go b/pkg/clouds/pulumi/aws/cw_dashboard.go index 120fcd16..106a78a7 100644 --- a/pkg/clouds/pulumi/aws/cw_dashboard.go +++ b/pkg/clouds/pulumi/aws/cw_dashboard.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package aws import ( diff --git a/pkg/clouds/pulumi/aws/docker.go b/pkg/clouds/pulumi/aws/docker.go index 62564573..5948a214 100644 --- a/pkg/clouds/pulumi/aws/docker.go +++ b/pkg/clouds/pulumi/aws/docker.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package aws import ( diff --git a/pkg/clouds/pulumi/aws/ecr_repository.go b/pkg/clouds/pulumi/aws/ecr_repository.go index d0f80fe3..52152150 100644 --- a/pkg/clouds/pulumi/aws/ecr_repository.go +++ b/pkg/clouds/pulumi/aws/ecr_repository.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package aws import ( diff --git a/pkg/clouds/pulumi/aws/ecs_fargate.go b/pkg/clouds/pulumi/aws/ecs_fargate.go index b0a1f2c6..57c3108d 100644 --- a/pkg/clouds/pulumi/aws/ecs_fargate.go +++ b/pkg/clouds/pulumi/aws/ecs_fargate.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package aws import ( @@ -377,7 +380,8 @@ func createEcsFargateCluster(ctx *sdk.Context, stack api.Stack, params pApi.Prov return lo.Contains( lo.Map(crInput.Containers, func(c aws.EcsFargateContainer, _ int) string { return c.Name - }), d.Container) + }), d.Container, + ) }), func(dep aws.EcsFargateDependsOn, _ int) { dependsOn = append(dependsOn, ecs.TaskDefinitionContainerDependencyArgs{ @@ -429,7 +433,8 @@ func createEcsFargateCluster(ctx *sdk.Context, stack api.Stack, params pApi.Prov } } return cDef - }), + }, + ), func(container EcsContainerDef) string { return container.Name }), diff --git a/pkg/clouds/pulumi/aws/exec_ecs_task.go b/pkg/clouds/pulumi/aws/exec_ecs_task.go index 63434ff8..a239db68 100644 --- a/pkg/clouds/pulumi/aws/exec_ecs_task.go +++ b/pkg/clouds/pulumi/aws/exec_ecs_task.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package aws import ( diff --git a/pkg/clouds/pulumi/aws/init.go b/pkg/clouds/pulumi/aws/init.go index 1f209d80..f02e542b 100644 --- a/pkg/clouds/pulumi/aws/init.go +++ b/pkg/clouds/pulumi/aws/init.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package aws import ( diff --git a/pkg/clouds/pulumi/aws/kms_key.go b/pkg/clouds/pulumi/aws/kms_key.go index b314b34d..1fa8077b 100644 --- a/pkg/clouds/pulumi/aws/kms_key.go +++ b/pkg/clouds/pulumi/aws/kms_key.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package aws import ( diff --git a/pkg/clouds/pulumi/aws/provider.go b/pkg/clouds/pulumi/aws/provider.go index b22a56d7..c9f04b8e 100644 --- a/pkg/clouds/pulumi/aws/provider.go +++ b/pkg/clouds/pulumi/aws/provider.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package aws import ( diff --git a/pkg/clouds/pulumi/aws/rds_mysql.go b/pkg/clouds/pulumi/aws/rds_mysql.go index 413ffe5b..4b3eb8ec 100644 --- a/pkg/clouds/pulumi/aws/rds_mysql.go +++ b/pkg/clouds/pulumi/aws/rds_mysql.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package aws import ( diff --git a/pkg/clouds/pulumi/aws/rds_postgres.go b/pkg/clouds/pulumi/aws/rds_postgres.go index 381c8fd5..83144564 100644 --- a/pkg/clouds/pulumi/aws/rds_postgres.go +++ b/pkg/clouds/pulumi/aws/rds_postgres.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package aws import ( diff --git a/pkg/clouds/pulumi/aws/secrets.go b/pkg/clouds/pulumi/aws/secrets.go index a2fae2d9..1e53211a 100644 --- a/pkg/clouds/pulumi/aws/secrets.go +++ b/pkg/clouds/pulumi/aws/secrets.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package aws import ( diff --git a/pkg/clouds/pulumi/aws/sg.go b/pkg/clouds/pulumi/aws/sg.go index 45d82cb7..37d57565 100644 --- a/pkg/clouds/pulumi/aws/sg.go +++ b/pkg/clouds/pulumi/aws/sg.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package aws import ( diff --git a/pkg/clouds/pulumi/aws/static_egress.go b/pkg/clouds/pulumi/aws/static_egress.go index 8d0a4dcb..dba928cb 100644 --- a/pkg/clouds/pulumi/aws/static_egress.go +++ b/pkg/clouds/pulumi/aws/static_egress.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package aws import ( diff --git a/pkg/clouds/pulumi/aws/static_website.go b/pkg/clouds/pulumi/aws/static_website.go index 3d1ea22e..05addd37 100644 --- a/pkg/clouds/pulumi/aws/static_website.go +++ b/pkg/clouds/pulumi/aws/static_website.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package aws import ( diff --git a/pkg/clouds/pulumi/aws/subnets.go b/pkg/clouds/pulumi/aws/subnets.go index 3caa9957..2eddb1ef 100644 --- a/pkg/clouds/pulumi/aws/subnets.go +++ b/pkg/clouds/pulumi/aws/subnets.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package aws import ( diff --git a/pkg/clouds/pulumi/cancel.go b/pkg/clouds/pulumi/cancel.go index 4d7ac01a..a834caf9 100644 --- a/pkg/clouds/pulumi/cancel.go +++ b/pkg/clouds/pulumi/cancel.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package pulumi import ( diff --git a/pkg/clouds/pulumi/cloudflare/init.go b/pkg/clouds/pulumi/cloudflare/init.go index f1b3ad84..69c07a91 100644 --- a/pkg/clouds/pulumi/cloudflare/init.go +++ b/pkg/clouds/pulumi/cloudflare/init.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package cloudflare import ( diff --git a/pkg/clouds/pulumi/cloudflare/ips.go b/pkg/clouds/pulumi/cloudflare/ips.go index e460132e..73d0d88a 100644 --- a/pkg/clouds/pulumi/cloudflare/ips.go +++ b/pkg/clouds/pulumi/cloudflare/ips.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package cloudflare import ( diff --git a/pkg/clouds/pulumi/cloudflare/registrar.go b/pkg/clouds/pulumi/cloudflare/registrar.go index 7f4103ad..1ac418ed 100644 --- a/pkg/clouds/pulumi/cloudflare/registrar.go +++ b/pkg/clouds/pulumi/cloudflare/registrar.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package cloudflare import ( diff --git a/pkg/clouds/pulumi/create_stack.go b/pkg/clouds/pulumi/create_stack.go index f6895f40..f3d5c5f8 100644 --- a/pkg/clouds/pulumi/create_stack.go +++ b/pkg/clouds/pulumi/create_stack.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package pulumi import ( diff --git a/pkg/clouds/pulumi/create_stack_test.go b/pkg/clouds/pulumi/create_stack_test.go index b0d884e2..49271baa 100644 --- a/pkg/clouds/pulumi/create_stack_test.go +++ b/pkg/clouds/pulumi/create_stack_test.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package pulumi import ( diff --git a/pkg/clouds/pulumi/db/constants.go b/pkg/clouds/pulumi/db/constants.go index 44d255a9..ba380f61 100644 --- a/pkg/clouds/pulumi/db/constants.go +++ b/pkg/clouds/pulumi/db/constants.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package db const PSQL_DB_INIT_SH = ` diff --git a/pkg/clouds/pulumi/deploy.go b/pkg/clouds/pulumi/deploy.go index 2e5439ed..51c152e3 100644 --- a/pkg/clouds/pulumi/deploy.go +++ b/pkg/clouds/pulumi/deploy.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package pulumi import ( diff --git a/pkg/clouds/pulumi/destroy.go b/pkg/clouds/pulumi/destroy.go index a3aee853..3d144377 100644 --- a/pkg/clouds/pulumi/destroy.go +++ b/pkg/clouds/pulumi/destroy.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package pulumi import ( diff --git a/pkg/clouds/pulumi/docker/build_and_push.go b/pkg/clouds/pulumi/docker/build_and_push.go index 7c64b7a6..17fbef93 100644 --- a/pkg/clouds/pulumi/docker/build_and_push.go +++ b/pkg/clouds/pulumi/docker/build_and_push.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package docker import ( @@ -473,7 +476,8 @@ func createProvenanceCommands(ctx *sdk.Context, security *api.SecurityDescriptor args = append(args, "--builder-id", security.Provenance.Builder.ID) } if security.Provenance.Metadata != nil { - args = append(args, + args = append( + args, fmt.Sprintf("--include-env=%t", security.Provenance.Metadata.IncludeEnv), fmt.Sprintf("--include-materials=%t", security.Provenance.Metadata.IncludeMaterials), ) diff --git a/pkg/clouds/pulumi/docker/build_and_push_test.go b/pkg/clouds/pulumi/docker/build_and_push_test.go index c862627e..54eade61 100644 --- a/pkg/clouds/pulumi/docker/build_and_push_test.go +++ b/pkg/clouds/pulumi/docker/build_and_push_test.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package docker import ( diff --git a/pkg/clouds/pulumi/docker/docker_response.go b/pkg/clouds/pulumi/docker/docker_response.go index 9e4dc70c..ca965849 100644 --- a/pkg/clouds/pulumi/docker/docker_response.go +++ b/pkg/clouds/pulumi/docker/docker_response.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package docker import "fmt" diff --git a/pkg/clouds/pulumi/docker/pull.go b/pkg/clouds/pulumi/docker/pull.go index 157f89d1..9bff0e17 100644 --- a/pkg/clouds/pulumi/docker/pull.go +++ b/pkg/clouds/pulumi/docker/pull.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package docker import ( diff --git a/pkg/clouds/pulumi/docker/security_helpers.go b/pkg/clouds/pulumi/docker/security_helpers.go index 1359d50d..ac7e65f4 100644 --- a/pkg/clouds/pulumi/docker/security_helpers.go +++ b/pkg/clouds/pulumi/docker/security_helpers.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package docker import ( @@ -94,7 +97,8 @@ func writeDockerConfigScript(server, auth string) string { `if [ "$HOME" != "/root" ]; then `+ `mkdir -p /root/.docker 2>/dev/null && printf '%%s' "$CREDS" > /root/.docker/config.json 2>/dev/null || true; `+ `fi`, - server, auth) + server, auth, + ) } // writeRegistryLogin builds the registry-login shell command from resolved credentials. @@ -317,7 +321,8 @@ func needsMergedScanArtifacts(security *api.SecurityDescriptor, imageName string } func appendDefectDojoFlags(args []string, config *api.DefectDojoDescriptor) []string { - args = append(args, + args = append( + args, "--upload-defectdojo", "--defectdojo-url", config.URL, "--defectdojo-auto-create="+fmt.Sprintf("%t", config.AutoCreate), diff --git a/pkg/clouds/pulumi/docker/security_report.go b/pkg/clouds/pulumi/docker/security_report.go index 5bf87e26..079ddd63 100644 --- a/pkg/clouds/pulumi/docker/security_report.go +++ b/pkg/clouds/pulumi/docker/security_report.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package docker import ( @@ -26,8 +29,10 @@ var sanitizeForFilenameRe = regexp.MustCompile(`[^A-Za-z0-9._-]`) // chars — at which point os.WriteFile returns ENAMETOOLONG and the caller // falls back to inlining the full script, reintroducing the ARG_MAX // failure this helper exists to avoid. -const maxSafeNameLen = 64 -const stagedScriptPrefix = "sc-security-report-" +const ( + maxSafeNameLen = 64 + stagedScriptPrefix = "sc-security-report-" +) // stagedScriptMaxAge is the lifetime ceiling for staged scripts in TMPDIR. // On a long-lived CI runner with hundreds of deploys per day, the staged diff --git a/pkg/clouds/pulumi/docker/security_report_test.go b/pkg/clouds/pulumi/docker/security_report_test.go index b66f394f..904c2ab4 100644 --- a/pkg/clouds/pulumi/docker/security_report_test.go +++ b/pkg/clouds/pulumi/docker/security_report_test.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package docker import ( @@ -80,10 +83,10 @@ func TestStageSecurityReportScript_SanitizesResourceName(t *testing.T) { // Pulumi's ApplyT callback re-fires on every preview/up. The helper must // short-circuit when the deterministic path already exists — no rewrite, // no mtime churn beyond the explicit refresh. Asserts: -// 1. Second call returns identical path. -// 2. mtime was refreshed by the second call (so TTL sweep won't garbage- -// collect actively-referenced files between preview and apply). -// 3. File size unchanged (no rewrite happened — content was already correct). +// 1. Second call returns identical path. +// 2. mtime was refreshed by the second call (so TTL sweep won't garbage- +// collect actively-referenced files between preview and apply). +// 3. File size unchanged (no rewrite happened — content was already correct). func TestStageSecurityReportScript_StatShortCircuit(t *testing.T) { RegisterTestingT(t) diff --git a/pkg/clouds/pulumi/docker/types.go b/pkg/clouds/pulumi/docker/types.go index 9c9f5eb5..f21c5e88 100644 --- a/pkg/clouds/pulumi/docker/types.go +++ b/pkg/clouds/pulumi/docker/types.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package docker import ( diff --git a/pkg/clouds/pulumi/e2e_compose_test.go b/pkg/clouds/pulumi/e2e_compose_test.go index c168baff..a611d588 100644 --- a/pkg/clouds/pulumi/e2e_compose_test.go +++ b/pkg/clouds/pulumi/e2e_compose_test.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + //go:build e2e package pulumi diff --git a/pkg/clouds/pulumi/e2e_file_system_state_store_test.go b/pkg/clouds/pulumi/e2e_file_system_state_store_test.go index 2c08eee5..6798c566 100644 --- a/pkg/clouds/pulumi/e2e_file_system_state_store_test.go +++ b/pkg/clouds/pulumi/e2e_file_system_state_store_test.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + //go:build e2e package pulumi diff --git a/pkg/clouds/pulumi/e2e_helpers_test.go b/pkg/clouds/pulumi/e2e_helpers_test.go index f00f7edf..64b5549f 100644 --- a/pkg/clouds/pulumi/e2e_helpers_test.go +++ b/pkg/clouds/pulumi/e2e_helpers_test.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + //go:build e2e package pulumi diff --git a/pkg/clouds/pulumi/e2e_kubernetes_test.go b/pkg/clouds/pulumi/e2e_kubernetes_test.go index 620a184c..2873f50d 100644 --- a/pkg/clouds/pulumi/e2e_kubernetes_test.go +++ b/pkg/clouds/pulumi/e2e_kubernetes_test.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + //go:build e2e package pulumi diff --git a/pkg/clouds/pulumi/e2e_pulumi_static_website_test.go b/pkg/clouds/pulumi/e2e_pulumi_static_website_test.go index 58ad6686..d3a6ea6c 100644 --- a/pkg/clouds/pulumi/e2e_pulumi_static_website_test.go +++ b/pkg/clouds/pulumi/e2e_pulumi_static_website_test.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + //go:build e2e package pulumi diff --git a/pkg/clouds/pulumi/e2e_static_website_test.go b/pkg/clouds/pulumi/e2e_static_website_test.go index a76d79f8..349ff863 100644 --- a/pkg/clouds/pulumi/e2e_static_website_test.go +++ b/pkg/clouds/pulumi/e2e_static_website_test.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + //go:build e2e package pulumi diff --git a/pkg/clouds/pulumi/events.go b/pkg/clouds/pulumi/events.go index 5fc7b9aa..00aedc4d 100644 --- a/pkg/clouds/pulumi/events.go +++ b/pkg/clouds/pulumi/events.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package pulumi import ( diff --git a/pkg/clouds/pulumi/gcp/adopt_bucket.go b/pkg/clouds/pulumi/gcp/adopt_bucket.go index 76f87291..da1148ed 100644 --- a/pkg/clouds/pulumi/gcp/adopt_bucket.go +++ b/pkg/clouds/pulumi/gcp/adopt_bucket.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package gcp import ( diff --git a/pkg/clouds/pulumi/gcp/adopt_gke_autopilot.go b/pkg/clouds/pulumi/gcp/adopt_gke_autopilot.go index 254f685f..766db277 100644 --- a/pkg/clouds/pulumi/gcp/adopt_gke_autopilot.go +++ b/pkg/clouds/pulumi/gcp/adopt_gke_autopilot.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package gcp import ( diff --git a/pkg/clouds/pulumi/gcp/adopt_postgres.go b/pkg/clouds/pulumi/gcp/adopt_postgres.go index e0173e59..ee2ad1f0 100644 --- a/pkg/clouds/pulumi/gcp/adopt_postgres.go +++ b/pkg/clouds/pulumi/gcp/adopt_postgres.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package gcp import ( diff --git a/pkg/clouds/pulumi/gcp/adopt_redis.go b/pkg/clouds/pulumi/gcp/adopt_redis.go index d98d52cf..2e149d02 100644 --- a/pkg/clouds/pulumi/gcp/adopt_redis.go +++ b/pkg/clouds/pulumi/gcp/adopt_redis.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package gcp import ( diff --git a/pkg/clouds/pulumi/gcp/alerts.go b/pkg/clouds/pulumi/gcp/alerts.go index 35fb9e21..dcad9dcf 100644 --- a/pkg/clouds/pulumi/gcp/alerts.go +++ b/pkg/clouds/pulumi/gcp/alerts.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package gcp import ( diff --git a/pkg/clouds/pulumi/gcp/artifactregistry.go b/pkg/clouds/pulumi/gcp/artifactregistry.go index 3f516add..5e250e8f 100644 --- a/pkg/clouds/pulumi/gcp/artifactregistry.go +++ b/pkg/clouds/pulumi/gcp/artifactregistry.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package gcp import ( diff --git a/pkg/clouds/pulumi/gcp/bucket.go b/pkg/clouds/pulumi/gcp/bucket.go index c93c8373..d6c3e339 100644 --- a/pkg/clouds/pulumi/gcp/bucket.go +++ b/pkg/clouds/pulumi/gcp/bucket.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package gcp import ( diff --git a/pkg/clouds/pulumi/gcp/bucket_uploader.go b/pkg/clouds/pulumi/gcp/bucket_uploader.go index 6205fa88..4d46d3a4 100644 --- a/pkg/clouds/pulumi/gcp/bucket_uploader.go +++ b/pkg/clouds/pulumi/gcp/bucket_uploader.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package gcp import ( diff --git a/pkg/clouds/pulumi/gcp/cloudrun.go b/pkg/clouds/pulumi/gcp/cloudrun.go index 767774ca..241c0eda 100644 --- a/pkg/clouds/pulumi/gcp/cloudrun.go +++ b/pkg/clouds/pulumi/gcp/cloudrun.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package gcp import ( diff --git a/pkg/clouds/pulumi/gcp/cloudsql_proxy.go b/pkg/clouds/pulumi/gcp/cloudsql_proxy.go index 3971908b..cac70a53 100644 --- a/pkg/clouds/pulumi/gcp/cloudsql_proxy.go +++ b/pkg/clouds/pulumi/gcp/cloudsql_proxy.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package gcp import ( diff --git a/pkg/clouds/pulumi/gcp/compute_proc.go b/pkg/clouds/pulumi/gcp/compute_proc.go index f50f1d61..f159e32a 100644 --- a/pkg/clouds/pulumi/gcp/compute_proc.go +++ b/pkg/clouds/pulumi/gcp/compute_proc.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package gcp import ( diff --git a/pkg/clouds/pulumi/gcp/compute_proc_test.go b/pkg/clouds/pulumi/gcp/compute_proc_test.go index eee7f2c9..67b3744f 100644 --- a/pkg/clouds/pulumi/gcp/compute_proc_test.go +++ b/pkg/clouds/pulumi/gcp/compute_proc_test.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package gcp import ( diff --git a/pkg/clouds/pulumi/gcp/docker_image.go b/pkg/clouds/pulumi/gcp/docker_image.go index a65cb11c..963f071a 100644 --- a/pkg/clouds/pulumi/gcp/docker_image.go +++ b/pkg/clouds/pulumi/gcp/docker_image.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package gcp import ( diff --git a/pkg/clouds/pulumi/gcp/gke_autopilot.go b/pkg/clouds/pulumi/gcp/gke_autopilot.go index 5d6ac9d6..3a74ea96 100644 --- a/pkg/clouds/pulumi/gcp/gke_autopilot.go +++ b/pkg/clouds/pulumi/gcp/gke_autopilot.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package gcp import ( diff --git a/pkg/clouds/pulumi/gcp/gke_autopilot_advanced_test.go b/pkg/clouds/pulumi/gcp/gke_autopilot_advanced_test.go index acefc54a..c3e5aa1c 100644 --- a/pkg/clouds/pulumi/gcp/gke_autopilot_advanced_test.go +++ b/pkg/clouds/pulumi/gcp/gke_autopilot_advanced_test.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package gcp import ( diff --git a/pkg/clouds/pulumi/gcp/gke_autopilot_compute_proc.go b/pkg/clouds/pulumi/gcp/gke_autopilot_compute_proc.go index 78f9d03f..b741e308 100644 --- a/pkg/clouds/pulumi/gcp/gke_autopilot_compute_proc.go +++ b/pkg/clouds/pulumi/gcp/gke_autopilot_compute_proc.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package gcp import ( diff --git a/pkg/clouds/pulumi/gcp/gke_autopilot_mocks_test.go b/pkg/clouds/pulumi/gcp/gke_autopilot_mocks_test.go index 56df30ba..598c3db4 100644 --- a/pkg/clouds/pulumi/gcp/gke_autopilot_mocks_test.go +++ b/pkg/clouds/pulumi/gcp/gke_autopilot_mocks_test.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package gcp import ( diff --git a/pkg/clouds/pulumi/gcp/gke_autopilot_stack.go b/pkg/clouds/pulumi/gcp/gke_autopilot_stack.go index 61e1f9af..0edec3a6 100644 --- a/pkg/clouds/pulumi/gcp/gke_autopilot_stack.go +++ b/pkg/clouds/pulumi/gcp/gke_autopilot_stack.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package gcp import ( diff --git a/pkg/clouds/pulumi/gcp/gke_autopilot_test.go b/pkg/clouds/pulumi/gcp/gke_autopilot_test.go index c29e89d4..8b91773a 100644 --- a/pkg/clouds/pulumi/gcp/gke_autopilot_test.go +++ b/pkg/clouds/pulumi/gcp/gke_autopilot_test.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package gcp import ( diff --git a/pkg/clouds/pulumi/gcp/init.go b/pkg/clouds/pulumi/gcp/init.go index b20bde4c..c28c69ae 100644 --- a/pkg/clouds/pulumi/gcp/init.go +++ b/pkg/clouds/pulumi/gcp/init.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package gcp import ( diff --git a/pkg/clouds/pulumi/gcp/init_pg_user_job.go b/pkg/clouds/pulumi/gcp/init_pg_user_job.go index 98f90061..ec28a2d7 100644 --- a/pkg/clouds/pulumi/gcp/init_pg_user_job.go +++ b/pkg/clouds/pulumi/gcp/init_pg_user_job.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package gcp import ( diff --git a/pkg/clouds/pulumi/gcp/kms_key.go b/pkg/clouds/pulumi/gcp/kms_key.go index 8f4a59d2..1433a11d 100644 --- a/pkg/clouds/pulumi/gcp/kms_key.go +++ b/pkg/clouds/pulumi/gcp/kms_key.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package gcp import ( diff --git a/pkg/clouds/pulumi/gcp/postgres.go b/pkg/clouds/pulumi/gcp/postgres.go index 82caa880..6623a325 100644 --- a/pkg/clouds/pulumi/gcp/postgres.go +++ b/pkg/clouds/pulumi/gcp/postgres.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package gcp import ( diff --git a/pkg/clouds/pulumi/gcp/provider.go b/pkg/clouds/pulumi/gcp/provider.go index feb25919..f5720620 100644 --- a/pkg/clouds/pulumi/gcp/provider.go +++ b/pkg/clouds/pulumi/gcp/provider.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package gcp import ( diff --git a/pkg/clouds/pulumi/gcp/pubsub.go b/pkg/clouds/pulumi/gcp/pubsub.go index 12c8a4c5..e651de04 100644 --- a/pkg/clouds/pulumi/gcp/pubsub.go +++ b/pkg/clouds/pulumi/gcp/pubsub.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package gcp import ( diff --git a/pkg/clouds/pulumi/gcp/redis.go b/pkg/clouds/pulumi/gcp/redis.go index 28bd65a0..421bdbce 100644 --- a/pkg/clouds/pulumi/gcp/redis.go +++ b/pkg/clouds/pulumi/gcp/redis.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package gcp import ( diff --git a/pkg/clouds/pulumi/gcp/service_account.go b/pkg/clouds/pulumi/gcp/service_account.go index a683a084..5e977c08 100644 --- a/pkg/clouds/pulumi/gcp/service_account.go +++ b/pkg/clouds/pulumi/gcp/service_account.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package gcp import ( diff --git a/pkg/clouds/pulumi/gcp/service_account_naming_test.go b/pkg/clouds/pulumi/gcp/service_account_naming_test.go index d975a0b3..fa8f7ef3 100644 --- a/pkg/clouds/pulumi/gcp/service_account_naming_test.go +++ b/pkg/clouds/pulumi/gcp/service_account_naming_test.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package gcp import ( diff --git a/pkg/clouds/pulumi/gcp/services_api.go b/pkg/clouds/pulumi/gcp/services_api.go index 64f97300..b67fe897 100644 --- a/pkg/clouds/pulumi/gcp/services_api.go +++ b/pkg/clouds/pulumi/gcp/services_api.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package gcp import ( diff --git a/pkg/clouds/pulumi/gcp/static_website.go b/pkg/clouds/pulumi/gcp/static_website.go index 81f69fea..f4ce57c0 100644 --- a/pkg/clouds/pulumi/gcp/static_website.go +++ b/pkg/clouds/pulumi/gcp/static_website.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package gcp import ( diff --git a/pkg/clouds/pulumi/init.go b/pkg/clouds/pulumi/init.go index 725ddd72..cc8923c1 100644 --- a/pkg/clouds/pulumi/init.go +++ b/pkg/clouds/pulumi/init.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package pulumi import ( diff --git a/pkg/clouds/pulumi/kubernetes/caddy.go b/pkg/clouds/pulumi/kubernetes/caddy.go index ab7cebb6..9355b6d3 100644 --- a/pkg/clouds/pulumi/kubernetes/caddy.go +++ b/pkg/clouds/pulumi/kubernetes/caddy.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package kubernetes import ( diff --git a/pkg/clouds/pulumi/kubernetes/caddy_global_opts.go b/pkg/clouds/pulumi/kubernetes/caddy_global_opts.go index ad7576ad..07cdd893 100644 --- a/pkg/clouds/pulumi/kubernetes/caddy_global_opts.go +++ b/pkg/clouds/pulumi/kubernetes/caddy_global_opts.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package kubernetes import ( diff --git a/pkg/clouds/pulumi/kubernetes/caddy_global_opts_test.go b/pkg/clouds/pulumi/kubernetes/caddy_global_opts_test.go index 39e8ef91..10e60591 100644 --- a/pkg/clouds/pulumi/kubernetes/caddy_global_opts_test.go +++ b/pkg/clouds/pulumi/kubernetes/caddy_global_opts_test.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package kubernetes import ( diff --git a/pkg/clouds/pulumi/kubernetes/caddy_hsts_value_test.go b/pkg/clouds/pulumi/kubernetes/caddy_hsts_value_test.go index 09b46aa9..a59628fb 100644 --- a/pkg/clouds/pulumi/kubernetes/caddy_hsts_value_test.go +++ b/pkg/clouds/pulumi/kubernetes/caddy_hsts_value_test.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package kubernetes import ( diff --git a/pkg/clouds/pulumi/kubernetes/compute_proc_mongodb.go b/pkg/clouds/pulumi/kubernetes/compute_proc_mongodb.go index b31d5a8f..7a2cc997 100644 --- a/pkg/clouds/pulumi/kubernetes/compute_proc_mongodb.go +++ b/pkg/clouds/pulumi/kubernetes/compute_proc_mongodb.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package kubernetes import ( diff --git a/pkg/clouds/pulumi/kubernetes/compute_proc_postgres.go b/pkg/clouds/pulumi/kubernetes/compute_proc_postgres.go index 11cd973a..5cfeca4b 100644 --- a/pkg/clouds/pulumi/kubernetes/compute_proc_postgres.go +++ b/pkg/clouds/pulumi/kubernetes/compute_proc_postgres.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package kubernetes import ( diff --git a/pkg/clouds/pulumi/kubernetes/compute_proc_rabbitmq.go b/pkg/clouds/pulumi/kubernetes/compute_proc_rabbitmq.go index 19bb174d..462b7135 100644 --- a/pkg/clouds/pulumi/kubernetes/compute_proc_rabbitmq.go +++ b/pkg/clouds/pulumi/kubernetes/compute_proc_rabbitmq.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package kubernetes import ( diff --git a/pkg/clouds/pulumi/kubernetes/compute_proc_redis.go b/pkg/clouds/pulumi/kubernetes/compute_proc_redis.go index 7d4e9071..cdb3e260 100644 --- a/pkg/clouds/pulumi/kubernetes/compute_proc_redis.go +++ b/pkg/clouds/pulumi/kubernetes/compute_proc_redis.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package kubernetes import ( diff --git a/pkg/clouds/pulumi/kubernetes/deployment.go b/pkg/clouds/pulumi/kubernetes/deployment.go index ebe73b12..066f8f5b 100644 --- a/pkg/clouds/pulumi/kubernetes/deployment.go +++ b/pkg/clouds/pulumi/kubernetes/deployment.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package kubernetes import ( diff --git a/pkg/clouds/pulumi/kubernetes/deployment_patch.go b/pkg/clouds/pulumi/kubernetes/deployment_patch.go index bdf2a5aa..9e3dcf20 100644 --- a/pkg/clouds/pulumi/kubernetes/deployment_patch.go +++ b/pkg/clouds/pulumi/kubernetes/deployment_patch.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package kubernetes import ( diff --git a/pkg/clouds/pulumi/kubernetes/deployment_patch_test.go b/pkg/clouds/pulumi/kubernetes/deployment_patch_test.go index 777ab045..d775a0eb 100644 --- a/pkg/clouds/pulumi/kubernetes/deployment_patch_test.go +++ b/pkg/clouds/pulumi/kubernetes/deployment_patch_test.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package kubernetes import ( diff --git a/pkg/clouds/pulumi/kubernetes/deployment_test.go b/pkg/clouds/pulumi/kubernetes/deployment_test.go index a7146464..481d8b06 100644 --- a/pkg/clouds/pulumi/kubernetes/deployment_test.go +++ b/pkg/clouds/pulumi/kubernetes/deployment_test.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package kubernetes import ( diff --git a/pkg/clouds/pulumi/kubernetes/helm_operator_mongodb.go b/pkg/clouds/pulumi/kubernetes/helm_operator_mongodb.go index 4c2e01aa..4149247f 100644 --- a/pkg/clouds/pulumi/kubernetes/helm_operator_mongodb.go +++ b/pkg/clouds/pulumi/kubernetes/helm_operator_mongodb.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package kubernetes import ( diff --git a/pkg/clouds/pulumi/kubernetes/helm_operator_postgres.go b/pkg/clouds/pulumi/kubernetes/helm_operator_postgres.go index 3e948a0c..9e9ac466 100644 --- a/pkg/clouds/pulumi/kubernetes/helm_operator_postgres.go +++ b/pkg/clouds/pulumi/kubernetes/helm_operator_postgres.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package kubernetes import ( diff --git a/pkg/clouds/pulumi/kubernetes/helm_operator_rabbitmq.go b/pkg/clouds/pulumi/kubernetes/helm_operator_rabbitmq.go index 356c3043..59332574 100644 --- a/pkg/clouds/pulumi/kubernetes/helm_operator_rabbitmq.go +++ b/pkg/clouds/pulumi/kubernetes/helm_operator_rabbitmq.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package kubernetes import ( diff --git a/pkg/clouds/pulumi/kubernetes/helm_operator_redis.go b/pkg/clouds/pulumi/kubernetes/helm_operator_redis.go index 5c5545f3..3646bb70 100644 --- a/pkg/clouds/pulumi/kubernetes/helm_operator_redis.go +++ b/pkg/clouds/pulumi/kubernetes/helm_operator_redis.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package kubernetes import ( diff --git a/pkg/clouds/pulumi/kubernetes/helpers.go b/pkg/clouds/pulumi/kubernetes/helpers.go index a2e62f1c..9d19018d 100644 --- a/pkg/clouds/pulumi/kubernetes/helpers.go +++ b/pkg/clouds/pulumi/kubernetes/helpers.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package kubernetes import ( diff --git a/pkg/clouds/pulumi/kubernetes/hpa.go b/pkg/clouds/pulumi/kubernetes/hpa.go index 215af14a..48b26852 100644 --- a/pkg/clouds/pulumi/kubernetes/hpa.go +++ b/pkg/clouds/pulumi/kubernetes/hpa.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package kubernetes import ( diff --git a/pkg/clouds/pulumi/kubernetes/hpa_test.go b/pkg/clouds/pulumi/kubernetes/hpa_test.go index d6f6f507..aae7d3f5 100644 --- a/pkg/clouds/pulumi/kubernetes/hpa_test.go +++ b/pkg/clouds/pulumi/kubernetes/hpa_test.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package kubernetes import ( diff --git a/pkg/clouds/pulumi/kubernetes/images_build.go b/pkg/clouds/pulumi/kubernetes/images_build.go index 9f412b2c..8db3338c 100644 --- a/pkg/clouds/pulumi/kubernetes/images_build.go +++ b/pkg/clouds/pulumi/kubernetes/images_build.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package kubernetes import ( diff --git a/pkg/clouds/pulumi/kubernetes/init.go b/pkg/clouds/pulumi/kubernetes/init.go index fbc9af20..51c0af5f 100644 --- a/pkg/clouds/pulumi/kubernetes/init.go +++ b/pkg/clouds/pulumi/kubernetes/init.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package kubernetes import ( diff --git a/pkg/clouds/pulumi/kubernetes/init_mongo_user_job.go b/pkg/clouds/pulumi/kubernetes/init_mongo_user_job.go index e47dcfd2..c97c55be 100644 --- a/pkg/clouds/pulumi/kubernetes/init_mongo_user_job.go +++ b/pkg/clouds/pulumi/kubernetes/init_mongo_user_job.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package kubernetes import ( diff --git a/pkg/clouds/pulumi/kubernetes/init_pg_user_job.go b/pkg/clouds/pulumi/kubernetes/init_pg_user_job.go index 85e21f29..81abc6af 100644 --- a/pkg/clouds/pulumi/kubernetes/init_pg_user_job.go +++ b/pkg/clouds/pulumi/kubernetes/init_pg_user_job.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package kubernetes import ( diff --git a/pkg/clouds/pulumi/kubernetes/kube_run.go b/pkg/clouds/pulumi/kubernetes/kube_run.go index bf7faca8..6e0c90d5 100644 --- a/pkg/clouds/pulumi/kubernetes/kube_run.go +++ b/pkg/clouds/pulumi/kubernetes/kube_run.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package kubernetes import ( diff --git a/pkg/clouds/pulumi/kubernetes/namespace_threading_test.go b/pkg/clouds/pulumi/kubernetes/namespace_threading_test.go index d4c273b9..e87965a9 100644 --- a/pkg/clouds/pulumi/kubernetes/namespace_threading_test.go +++ b/pkg/clouds/pulumi/kubernetes/namespace_threading_test.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package kubernetes import ( diff --git a/pkg/clouds/pulumi/kubernetes/naming.go b/pkg/clouds/pulumi/kubernetes/naming.go index 161e5fb7..f531ad6a 100644 --- a/pkg/clouds/pulumi/kubernetes/naming.go +++ b/pkg/clouds/pulumi/kubernetes/naming.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package kubernetes import "fmt" diff --git a/pkg/clouds/pulumi/kubernetes/naming_test.go b/pkg/clouds/pulumi/kubernetes/naming_test.go index 04a47daf..22c2b45e 100644 --- a/pkg/clouds/pulumi/kubernetes/naming_test.go +++ b/pkg/clouds/pulumi/kubernetes/naming_test.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package kubernetes import "testing" diff --git a/pkg/clouds/pulumi/kubernetes/provider.go b/pkg/clouds/pulumi/kubernetes/provider.go index 649e90ec..f7d4ff8b 100644 --- a/pkg/clouds/pulumi/kubernetes/provider.go +++ b/pkg/clouds/pulumi/kubernetes/provider.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package kubernetes import ( diff --git a/pkg/clouds/pulumi/kubernetes/service_account.go b/pkg/clouds/pulumi/kubernetes/service_account.go index 606a8441..3842be26 100644 --- a/pkg/clouds/pulumi/kubernetes/service_account.go +++ b/pkg/clouds/pulumi/kubernetes/service_account.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package kubernetes import ( diff --git a/pkg/clouds/pulumi/kubernetes/simple_container.go b/pkg/clouds/pulumi/kubernetes/simple_container.go index 2954d223..2cbd9d7a 100644 --- a/pkg/clouds/pulumi/kubernetes/simple_container.go +++ b/pkg/clouds/pulumi/kubernetes/simple_container.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package kubernetes import ( diff --git a/pkg/clouds/pulumi/kubernetes/simple_container_advanced_test.go b/pkg/clouds/pulumi/kubernetes/simple_container_advanced_test.go index 6915c157..c83ffa13 100644 --- a/pkg/clouds/pulumi/kubernetes/simple_container_advanced_test.go +++ b/pkg/clouds/pulumi/kubernetes/simple_container_advanced_test.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package kubernetes import ( diff --git a/pkg/clouds/pulumi/kubernetes/simple_container_edge_cases_test.go b/pkg/clouds/pulumi/kubernetes/simple_container_edge_cases_test.go index ff31d05e..515c67e8 100644 --- a/pkg/clouds/pulumi/kubernetes/simple_container_edge_cases_test.go +++ b/pkg/clouds/pulumi/kubernetes/simple_container_edge_cases_test.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package kubernetes import ( diff --git a/pkg/clouds/pulumi/kubernetes/simple_container_final_test.go b/pkg/clouds/pulumi/kubernetes/simple_container_final_test.go index e60b87a8..fb7ccc36 100644 --- a/pkg/clouds/pulumi/kubernetes/simple_container_final_test.go +++ b/pkg/clouds/pulumi/kubernetes/simple_container_final_test.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package kubernetes import ( diff --git a/pkg/clouds/pulumi/kubernetes/simple_container_mocks_test.go b/pkg/clouds/pulumi/kubernetes/simple_container_mocks_test.go index 559809c4..e217d345 100644 --- a/pkg/clouds/pulumi/kubernetes/simple_container_mocks_test.go +++ b/pkg/clouds/pulumi/kubernetes/simple_container_mocks_test.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package kubernetes import ( diff --git a/pkg/clouds/pulumi/kubernetes/simple_container_parentenv_test.go b/pkg/clouds/pulumi/kubernetes/simple_container_parentenv_test.go index 83886bcf..5428e360 100644 --- a/pkg/clouds/pulumi/kubernetes/simple_container_parentenv_test.go +++ b/pkg/clouds/pulumi/kubernetes/simple_container_parentenv_test.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package kubernetes import ( diff --git a/pkg/clouds/pulumi/kubernetes/simple_container_test.go b/pkg/clouds/pulumi/kubernetes/simple_container_test.go index b33040ce..7212b645 100644 --- a/pkg/clouds/pulumi/kubernetes/simple_container_test.go +++ b/pkg/clouds/pulumi/kubernetes/simple_container_test.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package kubernetes import ( diff --git a/pkg/clouds/pulumi/kubernetes/topology_spread_test.go b/pkg/clouds/pulumi/kubernetes/topology_spread_test.go index d1051224..15ca8e66 100644 --- a/pkg/clouds/pulumi/kubernetes/topology_spread_test.go +++ b/pkg/clouds/pulumi/kubernetes/topology_spread_test.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package kubernetes import ( diff --git a/pkg/clouds/pulumi/kubernetes/types.go b/pkg/clouds/pulumi/kubernetes/types.go index b085d35e..3e10cc54 100644 --- a/pkg/clouds/pulumi/kubernetes/types.go +++ b/pkg/clouds/pulumi/kubernetes/types.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package kubernetes import ( diff --git a/pkg/clouds/pulumi/kubernetes/validation.go b/pkg/clouds/pulumi/kubernetes/validation.go index 30bf4be4..2cf2630c 100644 --- a/pkg/clouds/pulumi/kubernetes/validation.go +++ b/pkg/clouds/pulumi/kubernetes/validation.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package kubernetes import ( diff --git a/pkg/clouds/pulumi/kubernetes/validation_test.go b/pkg/clouds/pulumi/kubernetes/validation_test.go index 3a614c8a..ef8a359e 100644 --- a/pkg/clouds/pulumi/kubernetes/validation_test.go +++ b/pkg/clouds/pulumi/kubernetes/validation_test.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package kubernetes import ( diff --git a/pkg/clouds/pulumi/kubernetes/volume.go b/pkg/clouds/pulumi/kubernetes/volume.go index 46ca5178..5e07a624 100644 --- a/pkg/clouds/pulumi/kubernetes/volume.go +++ b/pkg/clouds/pulumi/kubernetes/volume.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package kubernetes import ( diff --git a/pkg/clouds/pulumi/login.go b/pkg/clouds/pulumi/login.go index 9f0063ba..bdbb7b3f 100644 --- a/pkg/clouds/pulumi/login.go +++ b/pkg/clouds/pulumi/login.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package pulumi import ( diff --git a/pkg/clouds/pulumi/mongodb/adopt_cluster.go b/pkg/clouds/pulumi/mongodb/adopt_cluster.go index 92b160c4..96d70fe8 100644 --- a/pkg/clouds/pulumi/mongodb/adopt_cluster.go +++ b/pkg/clouds/pulumi/mongodb/adopt_cluster.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package mongodb import ( diff --git a/pkg/clouds/pulumi/mongodb/cluster.go b/pkg/clouds/pulumi/mongodb/cluster.go index e07e92a8..44c89b0c 100644 --- a/pkg/clouds/pulumi/mongodb/cluster.go +++ b/pkg/clouds/pulumi/mongodb/cluster.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package mongodb import ( diff --git a/pkg/clouds/pulumi/mongodb/cluster_naming_test.go b/pkg/clouds/pulumi/mongodb/cluster_naming_test.go index 974f68a9..a0ae7955 100644 --- a/pkg/clouds/pulumi/mongodb/cluster_naming_test.go +++ b/pkg/clouds/pulumi/mongodb/cluster_naming_test.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package mongodb import ( diff --git a/pkg/clouds/pulumi/mongodb/compute_proc.go b/pkg/clouds/pulumi/mongodb/compute_proc.go index b5216651..9c74e103 100644 --- a/pkg/clouds/pulumi/mongodb/compute_proc.go +++ b/pkg/clouds/pulumi/mongodb/compute_proc.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package mongodb import ( diff --git a/pkg/clouds/pulumi/mongodb/drop_db.go b/pkg/clouds/pulumi/mongodb/drop_db.go index d6635028..8f9e08a2 100644 --- a/pkg/clouds/pulumi/mongodb/drop_db.go +++ b/pkg/clouds/pulumi/mongodb/drop_db.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package mongodb import ( diff --git a/pkg/clouds/pulumi/mongodb/init.go b/pkg/clouds/pulumi/mongodb/init.go index 9bc562fc..3280357a 100644 --- a/pkg/clouds/pulumi/mongodb/init.go +++ b/pkg/clouds/pulumi/mongodb/init.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package mongodb import ( diff --git a/pkg/clouds/pulumi/mongodb/pre_destroy.go b/pkg/clouds/pulumi/mongodb/pre_destroy.go index 59796913..83bce02e 100644 --- a/pkg/clouds/pulumi/mongodb/pre_destroy.go +++ b/pkg/clouds/pulumi/mongodb/pre_destroy.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package mongodb import ( diff --git a/pkg/clouds/pulumi/mongodb/provider.go b/pkg/clouds/pulumi/mongodb/provider.go index e797ae75..6b930de4 100644 --- a/pkg/clouds/pulumi/mongodb/provider.go +++ b/pkg/clouds/pulumi/mongodb/provider.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package mongodb import ( diff --git a/pkg/clouds/pulumi/mongodb/util.go b/pkg/clouds/pulumi/mongodb/util.go index 9d130ed2..921171a8 100644 --- a/pkg/clouds/pulumi/mongodb/util.go +++ b/pkg/clouds/pulumi/mongodb/util.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package mongodb import ( diff --git a/pkg/clouds/pulumi/mongodb/util_test.go b/pkg/clouds/pulumi/mongodb/util_test.go index 3c4d7de9..91429d9b 100644 --- a/pkg/clouds/pulumi/mongodb/util_test.go +++ b/pkg/clouds/pulumi/mongodb/util_test.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package mongodb import ( diff --git a/pkg/clouds/pulumi/preview.go b/pkg/clouds/pulumi/preview.go index 46ee569a..dd64d3b3 100644 --- a/pkg/clouds/pulumi/preview.go +++ b/pkg/clouds/pulumi/preview.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package pulumi import ( @@ -35,7 +38,8 @@ func (p *pulumi) previewStack(ctx context.Context, cfg *api.ConfigFile, stack ap } p.logger.Info(ctx, "Preview parent stack %q...", stackSource.Name()) - previewResult, err := stackSource.Preview(ctx, + previewResult, err := stackSource.Preview( + ctx, optpreview.EventStreams(p.watchEvents(WithContextAction(ctx, ActionContextPreview))), optpreview.Diff(), // Enable detailed diff output for better visibility into changes ) @@ -62,7 +66,8 @@ func (p *pulumi) previewChildStack(ctx context.Context, cfg *api.ConfigFile, sta return nil, err } p.logger.Info(ctx, "%s", color.GreenFmt("Preview child stack %q...", stackSource.Name())) - previewResult, err := stackSource.Preview(ctx, + previewResult, err := stackSource.Preview( + ctx, optpreview.EventStreams(p.watchEvents(WithContextAction(ctx, ActionContextPreview))), optpreview.Diff(), // Enable detailed diff output for better visibility into changes ) diff --git a/pkg/clouds/pulumi/provision.go b/pkg/clouds/pulumi/provision.go index c2f671df..74016864 100644 --- a/pkg/clouds/pulumi/provision.go +++ b/pkg/clouds/pulumi/provision.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package pulumi import ( diff --git a/pkg/clouds/pulumi/provisioner.go b/pkg/clouds/pulumi/provisioner.go index daa8bbe5..5d4a6c50 100644 --- a/pkg/clouds/pulumi/provisioner.go +++ b/pkg/clouds/pulumi/provisioner.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package pulumi import ( diff --git a/pkg/clouds/pulumi/pulumi.go b/pkg/clouds/pulumi/pulumi.go index 07cd050b..62aa7727 100644 --- a/pkg/clouds/pulumi/pulumi.go +++ b/pkg/clouds/pulumi/pulumi.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package pulumi import ( diff --git a/pkg/clouds/pulumi/registrar.go b/pkg/clouds/pulumi/registrar.go index 4ebf3b87..b64d31f6 100644 --- a/pkg/clouds/pulumi/registrar.go +++ b/pkg/clouds/pulumi/registrar.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package pulumi import ( diff --git a/pkg/clouds/pulumi/scrandom/random_string.go b/pkg/clouds/pulumi/scrandom/random_string.go index ffc65d42..baff77fb 100644 --- a/pkg/clouds/pulumi/scrandom/random_string.go +++ b/pkg/clouds/pulumi/scrandom/random_string.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package scrandom import ( diff --git a/pkg/clouds/pulumi/testutil/secrets_test_util.go b/pkg/clouds/pulumi/testutil/secrets_test_util.go index fcba0c5d..933114dc 100644 --- a/pkg/clouds/pulumi/testutil/secrets_test_util.go +++ b/pkg/clouds/pulumi/testutil/secrets_test_util.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package testutil import ( diff --git a/pkg/clouds/slack/slack_alert.go b/pkg/clouds/slack/slack_alert.go index 2f07a64a..769d3dce 100644 --- a/pkg/clouds/slack/slack_alert.go +++ b/pkg/clouds/slack/slack_alert.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package slack import ( diff --git a/pkg/clouds/slack/slack_alert_test.go b/pkg/clouds/slack/slack_alert_test.go index 1b2a402c..d9f5f299 100644 --- a/pkg/clouds/slack/slack_alert_test.go +++ b/pkg/clouds/slack/slack_alert_test.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package slack import ( diff --git a/pkg/clouds/telegram/telegram_alert.go b/pkg/clouds/telegram/telegram_alert.go index c82460d4..fd34a6e8 100644 --- a/pkg/clouds/telegram/telegram_alert.go +++ b/pkg/clouds/telegram/telegram_alert.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package telegram import ( diff --git a/pkg/clouds/telegram/telegram_alert_test.go b/pkg/clouds/telegram/telegram_alert_test.go index fba27ecb..fc7b9997 100644 --- a/pkg/clouds/telegram/telegram_alert_test.go +++ b/pkg/clouds/telegram/telegram_alert_test.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package telegram import ( diff --git a/pkg/clouds/telegram/telegram_more_test.go b/pkg/clouds/telegram/telegram_more_test.go index 446eef81..46193319 100644 --- a/pkg/clouds/telegram/telegram_more_test.go +++ b/pkg/clouds/telegram/telegram_more_test.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package telegram import ( diff --git a/pkg/cmd/cmd_assistant/assistant.go b/pkg/cmd/cmd_assistant/assistant.go index e168afa9..b6520f8d 100644 --- a/pkg/cmd/cmd_assistant/assistant.go +++ b/pkg/cmd/cmd_assistant/assistant.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package cmd_assistant import ( diff --git a/pkg/cmd/cmd_cancel/cmd_cancel.go b/pkg/cmd/cmd_cancel/cmd_cancel.go index 7051d4d5..da569a8e 100644 --- a/pkg/cmd/cmd_cancel/cmd_cancel.go +++ b/pkg/cmd/cmd_cancel/cmd_cancel.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package cmd_cancel import ( diff --git a/pkg/cmd/cmd_cicd/cmd_cicd.go b/pkg/cmd/cmd_cicd/cmd_cicd.go index a22830f4..ddaf5bb0 100644 --- a/pkg/cmd/cmd_cicd/cmd_cicd.go +++ b/pkg/cmd/cmd_cicd/cmd_cicd.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package cmd_cicd import ( diff --git a/pkg/cmd/cmd_cicd/cmd_generate.go b/pkg/cmd/cmd_cicd/cmd_generate.go index 2ec98595..fb0bfbc3 100644 --- a/pkg/cmd/cmd_cicd/cmd_generate.go +++ b/pkg/cmd/cmd_cicd/cmd_generate.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package cmd_cicd import ( diff --git a/pkg/cmd/cmd_cicd/cmd_preview.go b/pkg/cmd/cmd_cicd/cmd_preview.go index 4f7fcbd6..8774da78 100644 --- a/pkg/cmd/cmd_cicd/cmd_preview.go +++ b/pkg/cmd/cmd_cicd/cmd_preview.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package cmd_cicd import ( diff --git a/pkg/cmd/cmd_cicd/cmd_sync.go b/pkg/cmd/cmd_cicd/cmd_sync.go index 02edd61c..726f9c4e 100644 --- a/pkg/cmd/cmd_cicd/cmd_sync.go +++ b/pkg/cmd/cmd_cicd/cmd_sync.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package cmd_cicd import ( diff --git a/pkg/cmd/cmd_cicd/cmd_validate.go b/pkg/cmd/cmd_cicd/cmd_validate.go index cb8ce088..b9ed709a 100644 --- a/pkg/cmd/cmd_cicd/cmd_validate.go +++ b/pkg/cmd/cmd_cicd/cmd_validate.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package cmd_cicd import ( diff --git a/pkg/cmd/cmd_cicd/common_flags.go b/pkg/cmd/cmd_cicd/common_flags.go index da98c3fc..fe02a77c 100644 --- a/pkg/cmd/cmd_cicd/common_flags.go +++ b/pkg/cmd/cmd_cicd/common_flags.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package cmd_cicd import ( diff --git a/pkg/cmd/cmd_cicd/completions.go b/pkg/cmd/cmd_cicd/completions.go index 2be378c3..06c65f69 100644 --- a/pkg/cmd/cmd_cicd/completions.go +++ b/pkg/cmd/cmd_cicd/completions.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package cmd_cicd import ( diff --git a/pkg/cmd/cmd_deploy/cmd_deploy.go b/pkg/cmd/cmd_deploy/cmd_deploy.go index 8be8c951..732332fa 100644 --- a/pkg/cmd/cmd_deploy/cmd_deploy.go +++ b/pkg/cmd/cmd_deploy/cmd_deploy.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package cmd_deploy import ( diff --git a/pkg/cmd/cmd_destroy/cmd_destroy.go b/pkg/cmd/cmd_destroy/cmd_destroy.go index 8fbaffbd..ac3a8c0c 100644 --- a/pkg/cmd/cmd_destroy/cmd_destroy.go +++ b/pkg/cmd/cmd_destroy/cmd_destroy.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package cmd_destroy import ( diff --git a/pkg/cmd/cmd_image/image.go b/pkg/cmd/cmd_image/image.go index af763e12..fca1df0b 100644 --- a/pkg/cmd/cmd_image/image.go +++ b/pkg/cmd/cmd_image/image.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package cmd_image import ( diff --git a/pkg/cmd/cmd_image/scan.go b/pkg/cmd/cmd_image/scan.go index f839db53..331072aa 100644 --- a/pkg/cmd/cmd_image/scan.go +++ b/pkg/cmd/cmd_image/scan.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package cmd_image import ( diff --git a/pkg/cmd/cmd_image/scan_test.go b/pkg/cmd/cmd_image/scan_test.go index 4b049b75..5576f637 100644 --- a/pkg/cmd/cmd_image/scan_test.go +++ b/pkg/cmd/cmd_image/scan_test.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package cmd_image import ( diff --git a/pkg/cmd/cmd_image/sign.go b/pkg/cmd/cmd_image/sign.go index ea9cf362..91629e49 100644 --- a/pkg/cmd/cmd_image/sign.go +++ b/pkg/cmd/cmd_image/sign.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package cmd_image import ( diff --git a/pkg/cmd/cmd_image/verify.go b/pkg/cmd/cmd_image/verify.go index 41e78c4c..718c5b3a 100644 --- a/pkg/cmd/cmd_image/verify.go +++ b/pkg/cmd/cmd_image/verify.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package cmd_image import ( diff --git a/pkg/cmd/cmd_init/cmd_init.go b/pkg/cmd/cmd_init/cmd_init.go index 3c432e43..eba6e01d 100644 --- a/pkg/cmd/cmd_init/cmd_init.go +++ b/pkg/cmd/cmd_init/cmd_init.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package cmd_init import ( diff --git a/pkg/cmd/cmd_provenance/attach.go b/pkg/cmd/cmd_provenance/attach.go index 50a4b324..cbaef842 100644 --- a/pkg/cmd/cmd_provenance/attach.go +++ b/pkg/cmd/cmd_provenance/attach.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package cmd_provenance import ( diff --git a/pkg/cmd/cmd_provenance/common.go b/pkg/cmd/cmd_provenance/common.go index 72e0aad1..2154669f 100644 --- a/pkg/cmd/cmd_provenance/common.go +++ b/pkg/cmd/cmd_provenance/common.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package cmd_provenance import ( diff --git a/pkg/cmd/cmd_provenance/generate.go b/pkg/cmd/cmd_provenance/generate.go index 8bd2640f..8e43113d 100644 --- a/pkg/cmd/cmd_provenance/generate.go +++ b/pkg/cmd/cmd_provenance/generate.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package cmd_provenance import ( diff --git a/pkg/cmd/cmd_provenance/provenance.go b/pkg/cmd/cmd_provenance/provenance.go index cf6d87de..0ae4599f 100644 --- a/pkg/cmd/cmd_provenance/provenance.go +++ b/pkg/cmd/cmd_provenance/provenance.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package cmd_provenance import ( diff --git a/pkg/cmd/cmd_provenance/verify.go b/pkg/cmd/cmd_provenance/verify.go index 34074647..aee8d618 100644 --- a/pkg/cmd/cmd_provenance/verify.go +++ b/pkg/cmd/cmd_provenance/verify.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package cmd_provenance import ( diff --git a/pkg/cmd/cmd_provision/cmd_provision.go b/pkg/cmd/cmd_provision/cmd_provision.go index b69f7d7d..5c2b206c 100644 --- a/pkg/cmd/cmd_provision/cmd_provision.go +++ b/pkg/cmd/cmd_provision/cmd_provision.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package cmd_provision import ( diff --git a/pkg/cmd/cmd_release/create.go b/pkg/cmd/cmd_release/create.go index 5e8a435e..39fcdc09 100644 --- a/pkg/cmd/cmd_release/create.go +++ b/pkg/cmd/cmd_release/create.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package cmd_release import ( diff --git a/pkg/cmd/cmd_release/release.go b/pkg/cmd/cmd_release/release.go index cb010dba..d14c7412 100644 --- a/pkg/cmd/cmd_release/release.go +++ b/pkg/cmd/cmd_release/release.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package cmd_release import ( diff --git a/pkg/cmd/cmd_sbom/attach.go b/pkg/cmd/cmd_sbom/attach.go index b89effd8..7718c804 100644 --- a/pkg/cmd/cmd_sbom/attach.go +++ b/pkg/cmd/cmd_sbom/attach.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package cmd_sbom import ( diff --git a/pkg/cmd/cmd_sbom/generate.go b/pkg/cmd/cmd_sbom/generate.go index 1ba28c4c..38c38fb2 100644 --- a/pkg/cmd/cmd_sbom/generate.go +++ b/pkg/cmd/cmd_sbom/generate.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package cmd_sbom import ( diff --git a/pkg/cmd/cmd_sbom/sbom.go b/pkg/cmd/cmd_sbom/sbom.go index 8af922f2..c3875ded 100644 --- a/pkg/cmd/cmd_sbom/sbom.go +++ b/pkg/cmd/cmd_sbom/sbom.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + // Package cmd_sbom provides CLI commands for SBOM operations package cmd_sbom diff --git a/pkg/cmd/cmd_sbom/verify.go b/pkg/cmd/cmd_sbom/verify.go index 4f8a0894..a9a741fe 100644 --- a/pkg/cmd/cmd_sbom/verify.go +++ b/pkg/cmd/cmd_sbom/verify.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package cmd_sbom import ( diff --git a/pkg/cmd/cmd_secrets/cmd_add.go b/pkg/cmd/cmd_secrets/cmd_add.go index 294b922f..6e52f654 100644 --- a/pkg/cmd/cmd_secrets/cmd_add.go +++ b/pkg/cmd/cmd_secrets/cmd_add.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package cmd_secrets import ( diff --git a/pkg/cmd/cmd_secrets/cmd_allow.go b/pkg/cmd/cmd_secrets/cmd_allow.go index fdedf2c6..e17e628e 100644 --- a/pkg/cmd/cmd_secrets/cmd_allow.go +++ b/pkg/cmd/cmd_secrets/cmd_allow.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package cmd_secrets import ( diff --git a/pkg/cmd/cmd_secrets/cmd_allowed_keys.go b/pkg/cmd/cmd_secrets/cmd_allowed_keys.go index 0e4a2e70..d11ac0e6 100644 --- a/pkg/cmd/cmd_secrets/cmd_allowed_keys.go +++ b/pkg/cmd/cmd_secrets/cmd_allowed_keys.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package cmd_secrets import ( diff --git a/pkg/cmd/cmd_secrets/cmd_delete.go b/pkg/cmd/cmd_secrets/cmd_delete.go index 1ffd24fd..b64624d4 100644 --- a/pkg/cmd/cmd_secrets/cmd_delete.go +++ b/pkg/cmd/cmd_secrets/cmd_delete.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package cmd_secrets import ( diff --git a/pkg/cmd/cmd_secrets/cmd_disallow.go b/pkg/cmd/cmd_secrets/cmd_disallow.go index ab640d71..f123fb32 100644 --- a/pkg/cmd/cmd_secrets/cmd_disallow.go +++ b/pkg/cmd/cmd_secrets/cmd_disallow.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package cmd_secrets import ( diff --git a/pkg/cmd/cmd_secrets/cmd_hide.go b/pkg/cmd/cmd_secrets/cmd_hide.go index db243b72..8e81b402 100644 --- a/pkg/cmd/cmd_secrets/cmd_hide.go +++ b/pkg/cmd/cmd_secrets/cmd_hide.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package cmd_secrets import ( diff --git a/pkg/cmd/cmd_secrets/cmd_init.go b/pkg/cmd/cmd_secrets/cmd_init.go index ca6a218a..44bed343 100644 --- a/pkg/cmd/cmd_secrets/cmd_init.go +++ b/pkg/cmd/cmd_secrets/cmd_init.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package cmd_secrets import ( diff --git a/pkg/cmd/cmd_secrets/cmd_list.go b/pkg/cmd/cmd_secrets/cmd_list.go index 0d655672..2750a217 100644 --- a/pkg/cmd/cmd_secrets/cmd_list.go +++ b/pkg/cmd/cmd_secrets/cmd_list.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package cmd_secrets import ( diff --git a/pkg/cmd/cmd_secrets/cmd_reveal.go b/pkg/cmd/cmd_secrets/cmd_reveal.go index e7734490..ca92a53e 100644 --- a/pkg/cmd/cmd_secrets/cmd_reveal.go +++ b/pkg/cmd/cmd_secrets/cmd_reveal.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package cmd_secrets import ( diff --git a/pkg/cmd/cmd_secrets/cmd_secrets.go b/pkg/cmd/cmd_secrets/cmd_secrets.go index a0be12e1..f154ac4c 100644 --- a/pkg/cmd/cmd_secrets/cmd_secrets.go +++ b/pkg/cmd/cmd_secrets/cmd_secrets.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package cmd_secrets import ( diff --git a/pkg/cmd/cmd_stack/cmd_outputs.go b/pkg/cmd/cmd_stack/cmd_outputs.go index 75575420..30605bfc 100644 --- a/pkg/cmd/cmd_stack/cmd_outputs.go +++ b/pkg/cmd/cmd_stack/cmd_outputs.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package cmd_stack import ( diff --git a/pkg/cmd/cmd_stack/cmd_secret_get.go b/pkg/cmd/cmd_stack/cmd_secret_get.go index 97dab0ff..8c0b36e8 100644 --- a/pkg/cmd/cmd_stack/cmd_secret_get.go +++ b/pkg/cmd/cmd_stack/cmd_secret_get.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package cmd_stack import ( diff --git a/pkg/cmd/cmd_stack/cmd_stack.go b/pkg/cmd/cmd_stack/cmd_stack.go index 1c160c9f..98179642 100644 --- a/pkg/cmd/cmd_stack/cmd_stack.go +++ b/pkg/cmd/cmd_stack/cmd_stack.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package cmd_stack import ( diff --git a/pkg/cmd/cmd_upgrade/cmd_upgrade.go b/pkg/cmd/cmd_upgrade/cmd_upgrade.go index fbddcebf..caf4888f 100644 --- a/pkg/cmd/cmd_upgrade/cmd_upgrade.go +++ b/pkg/cmd/cmd_upgrade/cmd_upgrade.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package cmd_upgrade import ( diff --git a/pkg/cmd/execute.go b/pkg/cmd/execute.go index 8b8a261c..c61253a5 100644 --- a/pkg/cmd/execute.go +++ b/pkg/cmd/execute.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + // Package cmd provides the SC CLI command tree for embedding in other binaries. // Used by the github-actions binary to serve security subcommands (image sign/scan, // sbom generate/attach, provenance generate/attach) when invoked via the "sc" symlink. diff --git a/pkg/cmd/root_cmd/root.go b/pkg/cmd/root_cmd/root.go index ebdf7693..a435f564 100644 --- a/pkg/cmd/root_cmd/root.go +++ b/pkg/cmd/root_cmd/root.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package root_cmd import ( diff --git a/pkg/githubactions/actions/config.go b/pkg/githubactions/actions/config.go index c75222ff..e1bb3c14 100644 --- a/pkg/githubactions/actions/config.go +++ b/pkg/githubactions/actions/config.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package actions import ( diff --git a/pkg/githubactions/actions/executor.go b/pkg/githubactions/actions/executor.go index 731c1d3a..d7b97454 100644 --- a/pkg/githubactions/actions/executor.go +++ b/pkg/githubactions/actions/executor.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package actions import ( diff --git a/pkg/githubactions/actions/notifications.go b/pkg/githubactions/actions/notifications.go index 8d717f9f..d353f655 100644 --- a/pkg/githubactions/actions/notifications.go +++ b/pkg/githubactions/actions/notifications.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package actions import ( diff --git a/pkg/githubactions/actions/operation_executor.go b/pkg/githubactions/actions/operation_executor.go index e0d83ab8..3d137c09 100644 --- a/pkg/githubactions/actions/operation_executor.go +++ b/pkg/githubactions/actions/operation_executor.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package actions import ( diff --git a/pkg/githubactions/actions/operations.go b/pkg/githubactions/actions/operations.go index 4b06d3cd..6a1f64e2 100644 --- a/pkg/githubactions/actions/operations.go +++ b/pkg/githubactions/actions/operations.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package actions import ( diff --git a/pkg/githubactions/actions/parent_repo.go b/pkg/githubactions/actions/parent_repo.go index 619ead2c..40a5729c 100644 --- a/pkg/githubactions/actions/parent_repo.go +++ b/pkg/githubactions/actions/parent_repo.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package actions import ( diff --git a/pkg/githubactions/actions/signal_handler.go b/pkg/githubactions/actions/signal_handler.go index 3389208c..403e2afc 100644 --- a/pkg/githubactions/actions/signal_handler.go +++ b/pkg/githubactions/actions/signal_handler.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package actions import ( diff --git a/pkg/githubactions/actions/utils.go b/pkg/githubactions/actions/utils.go index 0619cd0e..d279f244 100644 --- a/pkg/githubactions/actions/utils.go +++ b/pkg/githubactions/actions/utils.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package actions import ( diff --git a/pkg/githubactions/utils/logging/logger.go b/pkg/githubactions/utils/logging/logger.go index 12019daf..2d9eec36 100644 --- a/pkg/githubactions/utils/logging/logger.go +++ b/pkg/githubactions/utils/logging/logger.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package logging import ( diff --git a/pkg/provisioner/cancel.go b/pkg/provisioner/cancel.go index e9153b36..a203ddd5 100644 --- a/pkg/provisioner/cancel.go +++ b/pkg/provisioner/cancel.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package provisioner import ( diff --git a/pkg/provisioner/common.go b/pkg/provisioner/common.go index d892fe0b..8514a7e5 100644 --- a/pkg/provisioner/common.go +++ b/pkg/provisioner/common.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package provisioner import ( diff --git a/pkg/provisioner/common_test.go b/pkg/provisioner/common_test.go index 0070aa21..e0859c6b 100644 --- a/pkg/provisioner/common_test.go +++ b/pkg/provisioner/common_test.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package provisioner import ( diff --git a/pkg/provisioner/deploy.go b/pkg/provisioner/deploy.go index 2934d5dd..af281949 100644 --- a/pkg/provisioner/deploy.go +++ b/pkg/provisioner/deploy.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package provisioner import ( diff --git a/pkg/provisioner/destroy.go b/pkg/provisioner/destroy.go index ab1ed1cd..6ff94baf 100644 --- a/pkg/provisioner/destroy.go +++ b/pkg/provisioner/destroy.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package provisioner import ( diff --git a/pkg/provisioner/init.go b/pkg/provisioner/init.go index 41e0e02f..5be80943 100644 --- a/pkg/provisioner/init.go +++ b/pkg/provisioner/init.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package provisioner import ( diff --git a/pkg/provisioner/misc/misc.go b/pkg/provisioner/misc/misc.go index d2e7413e..ba588e06 100644 --- a/pkg/provisioner/misc/misc.go +++ b/pkg/provisioner/misc/misc.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package misc import "embed" diff --git a/pkg/provisioner/opts.go b/pkg/provisioner/opts.go index 7a4993e9..1cfd1258 100644 --- a/pkg/provisioner/opts.go +++ b/pkg/provisioner/opts.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package provisioner import ( diff --git a/pkg/provisioner/placeholders/placeholders.go b/pkg/provisioner/placeholders/placeholders.go index e4222307..309c980d 100644 --- a/pkg/provisioner/placeholders/placeholders.go +++ b/pkg/provisioner/placeholders/placeholders.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package placeholders import ( diff --git a/pkg/provisioner/placeholders/tests/placeholders_test.go b/pkg/provisioner/placeholders/tests/placeholders_test.go index ab998ba5..d7dbd3c3 100644 --- a/pkg/provisioner/placeholders/tests/placeholders_test.go +++ b/pkg/provisioner/placeholders/tests/placeholders_test.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package tests import ( diff --git a/pkg/provisioner/preview.go b/pkg/provisioner/preview.go index cf9067ca..dd96d3b9 100644 --- a/pkg/provisioner/preview.go +++ b/pkg/provisioner/preview.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package provisioner import ( diff --git a/pkg/provisioner/provision.go b/pkg/provisioner/provision.go index a6bdde5f..1d78675e 100644 --- a/pkg/provisioner/provision.go +++ b/pkg/provisioner/provision.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package provisioner import ( diff --git a/pkg/security/attestation/parser.go b/pkg/security/attestation/parser.go index 6d42b092..8946f9a4 100644 --- a/pkg/security/attestation/parser.go +++ b/pkg/security/attestation/parser.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package attestation import ( diff --git a/pkg/security/attestation/parser_more_test.go b/pkg/security/attestation/parser_more_test.go index f7458872..a72ac4aa 100644 --- a/pkg/security/attestation/parser_more_test.go +++ b/pkg/security/attestation/parser_more_test.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package attestation import ( diff --git a/pkg/security/attestation/parser_test.go b/pkg/security/attestation/parser_test.go index b151e665..d3967bb8 100644 --- a/pkg/security/attestation/parser_test.go +++ b/pkg/security/attestation/parser_test.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package attestation import ( diff --git a/pkg/security/cache.go b/pkg/security/cache.go index a6a02814..218d6499 100644 --- a/pkg/security/cache.go +++ b/pkg/security/cache.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package security import ( diff --git a/pkg/security/cache_errors_test.go b/pkg/security/cache_errors_test.go index fc2dbed6..8cab207a 100644 --- a/pkg/security/cache_errors_test.go +++ b/pkg/security/cache_errors_test.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package security import ( diff --git a/pkg/security/cache_fuzz_test.go b/pkg/security/cache_fuzz_test.go index 28d596fe..6e80952a 100644 --- a/pkg/security/cache_fuzz_test.go +++ b/pkg/security/cache_fuzz_test.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package security import ( diff --git a/pkg/security/cache_test.go b/pkg/security/cache_test.go index 1b514755..e489b98b 100644 --- a/pkg/security/cache_test.go +++ b/pkg/security/cache_test.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package security import ( diff --git a/pkg/security/config.go b/pkg/security/config.go index b18be7b9..97426d79 100644 --- a/pkg/security/config.go +++ b/pkg/security/config.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package security import ( diff --git a/pkg/security/config_test.go b/pkg/security/config_test.go index 83b98d89..0042811d 100644 --- a/pkg/security/config_test.go +++ b/pkg/security/config_test.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package security import ( diff --git a/pkg/security/context.go b/pkg/security/context.go index 60fc92a8..80ac9e3f 100644 --- a/pkg/security/context.go +++ b/pkg/security/context.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package security import ( diff --git a/pkg/security/context_oidc_retry_test.go b/pkg/security/context_oidc_retry_test.go index 11894a2e..0d57ee16 100644 --- a/pkg/security/context_oidc_retry_test.go +++ b/pkg/security/context_oidc_retry_test.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package security import ( diff --git a/pkg/security/context_test.go b/pkg/security/context_test.go index e4f52739..f4598bc5 100644 --- a/pkg/security/context_test.go +++ b/pkg/security/context_test.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package security import ( diff --git a/pkg/security/errors.go b/pkg/security/errors.go index 5a6e580b..fddef798 100644 --- a/pkg/security/errors.go +++ b/pkg/security/errors.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package security import ( diff --git a/pkg/security/executor.go b/pkg/security/executor.go index a2500311..e779ac7a 100644 --- a/pkg/security/executor.go +++ b/pkg/security/executor.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package security import ( diff --git a/pkg/security/executor_defectdojo_test.go b/pkg/security/executor_defectdojo_test.go index a6e7f8b4..fd4da540 100644 --- a/pkg/security/executor_defectdojo_test.go +++ b/pkg/security/executor_defectdojo_test.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package security import ( diff --git a/pkg/security/executor_integration_test.go b/pkg/security/executor_integration_test.go index 4972913c..f6d868d4 100644 --- a/pkg/security/executor_integration_test.go +++ b/pkg/security/executor_integration_test.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + //go:build integration // +build integration diff --git a/pkg/security/executor_logic_test.go b/pkg/security/executor_logic_test.go index d4c1f871..331d3c9f 100644 --- a/pkg/security/executor_logic_test.go +++ b/pkg/security/executor_logic_test.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package security import ( diff --git a/pkg/security/executor_orchestration_test.go b/pkg/security/executor_orchestration_test.go index f68710d5..7aa275fc 100644 --- a/pkg/security/executor_orchestration_test.go +++ b/pkg/security/executor_orchestration_test.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package security import ( diff --git a/pkg/security/executor_provenance_test.go b/pkg/security/executor_provenance_test.go index cd7f77f7..60c96563 100644 --- a/pkg/security/executor_provenance_test.go +++ b/pkg/security/executor_provenance_test.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package security import ( diff --git a/pkg/security/executor_scanning_fakebin_test.go b/pkg/security/executor_scanning_fakebin_test.go index 9901d06a..6004dec9 100644 --- a/pkg/security/executor_scanning_fakebin_test.go +++ b/pkg/security/executor_scanning_fakebin_test.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package security import ( diff --git a/pkg/security/executor_signing_test.go b/pkg/security/executor_signing_test.go index 7f29a321..706bf72b 100644 --- a/pkg/security/executor_signing_test.go +++ b/pkg/security/executor_signing_test.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package security import ( diff --git a/pkg/security/executor_test.go b/pkg/security/executor_test.go index a20fd671..736a4598 100644 --- a/pkg/security/executor_test.go +++ b/pkg/security/executor_test.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package security import ( diff --git a/pkg/security/integration_test.go b/pkg/security/integration_test.go index 57d830fd..57270be2 100644 --- a/pkg/security/integration_test.go +++ b/pkg/security/integration_test.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + //go:build integration // +build integration diff --git a/pkg/security/misc_coverage_test.go b/pkg/security/misc_coverage_test.go index 7ee27fea..1735f9c5 100644 --- a/pkg/security/misc_coverage_test.go +++ b/pkg/security/misc_coverage_test.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package security import ( diff --git a/pkg/security/provenance/provenance.go b/pkg/security/provenance/provenance.go index 71002c1b..09d56cb1 100644 --- a/pkg/security/provenance/provenance.go +++ b/pkg/security/provenance/provenance.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package provenance import ( diff --git a/pkg/security/provenance/provenance_coverage_test.go b/pkg/security/provenance/provenance_coverage_test.go index c96509c2..7447436c 100644 --- a/pkg/security/provenance/provenance_coverage_test.go +++ b/pkg/security/provenance/provenance_coverage_test.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package provenance import ( diff --git a/pkg/security/provenance/provenance_test.go b/pkg/security/provenance/provenance_test.go index 31224614..b6d91aec 100644 --- a/pkg/security/provenance/provenance_test.go +++ b/pkg/security/provenance/provenance_test.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package provenance import ( diff --git a/pkg/security/reporting/comment.go b/pkg/security/reporting/comment.go index a4944133..7558e4d2 100644 --- a/pkg/security/reporting/comment.go +++ b/pkg/security/reporting/comment.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package reporting import ( @@ -50,7 +53,8 @@ func BuildScanResultsComment(imageRef string, result *scan.ScanResult, uploads [ if fixedIn == "" { fixedIn = "-" } - b.WriteString(fmt.Sprintf("| %s | `%s` | `%s` | `%s` | `%s` |\n", + b.WriteString(fmt.Sprintf( + "| %s | `%s` | `%s` | `%s` | `%s` |\n", strings.ToUpper(string(vuln.Severity)), vuln.ID, vuln.Package, diff --git a/pkg/security/reporting/comment_test.go b/pkg/security/reporting/comment_test.go index 64a3ded5..327cf04a 100644 --- a/pkg/security/reporting/comment_test.go +++ b/pkg/security/reporting/comment_test.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package reporting import ( diff --git a/pkg/security/reporting/defectdojo.go b/pkg/security/reporting/defectdojo.go index ff90c09c..0d9349e5 100644 --- a/pkg/security/reporting/defectdojo.go +++ b/pkg/security/reporting/defectdojo.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package reporting import ( diff --git a/pkg/security/reporting/defectdojo_branches_test.go b/pkg/security/reporting/defectdojo_branches_test.go index 22dae333..730b5f25 100644 --- a/pkg/security/reporting/defectdojo_branches_test.go +++ b/pkg/security/reporting/defectdojo_branches_test.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package reporting import ( diff --git a/pkg/security/reporting/defectdojo_more_test.go b/pkg/security/reporting/defectdojo_more_test.go index 6835008b..82e2787f 100644 --- a/pkg/security/reporting/defectdojo_more_test.go +++ b/pkg/security/reporting/defectdojo_more_test.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package reporting import ( diff --git a/pkg/security/reporting/defectdojo_test.go b/pkg/security/reporting/defectdojo_test.go index e04ae4e0..173a498a 100644 --- a/pkg/security/reporting/defectdojo_test.go +++ b/pkg/security/reporting/defectdojo_test.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package reporting import ( diff --git a/pkg/security/reporting/sarif.go b/pkg/security/reporting/sarif.go index f1403132..59ab1e06 100644 --- a/pkg/security/reporting/sarif.go +++ b/pkg/security/reporting/sarif.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package reporting import ( diff --git a/pkg/security/reporting/sarif_test.go b/pkg/security/reporting/sarif_test.go index 6d429d7d..302a9713 100644 --- a/pkg/security/reporting/sarif_test.go +++ b/pkg/security/reporting/sarif_test.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package reporting import ( diff --git a/pkg/security/reporting/summary.go b/pkg/security/reporting/summary.go index ae944b39..2eda5d63 100644 --- a/pkg/security/reporting/summary.go +++ b/pkg/security/reporting/summary.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package reporting import ( diff --git a/pkg/security/reporting/summary_test.go b/pkg/security/reporting/summary_test.go index 0624e19b..f9dc85d8 100644 --- a/pkg/security/reporting/summary_test.go +++ b/pkg/security/reporting/summary_test.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package reporting import ( diff --git a/pkg/security/sbom/attacher.go b/pkg/security/sbom/attacher.go index c3645c80..e0e4bd33 100644 --- a/pkg/security/sbom/attacher.go +++ b/pkg/security/sbom/attacher.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package sbom import ( diff --git a/pkg/security/sbom/attacher_exec_test.go b/pkg/security/sbom/attacher_exec_test.go index 64cde06e..0480b3c1 100644 --- a/pkg/security/sbom/attacher_exec_test.go +++ b/pkg/security/sbom/attacher_exec_test.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package sbom import ( diff --git a/pkg/security/sbom/attacher_test.go b/pkg/security/sbom/attacher_test.go index 31e4ba14..20909517 100644 --- a/pkg/security/sbom/attacher_test.go +++ b/pkg/security/sbom/attacher_test.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package sbom import ( diff --git a/pkg/security/sbom/config.go b/pkg/security/sbom/config.go index 0d23a3e8..fb6cb01d 100644 --- a/pkg/security/sbom/config.go +++ b/pkg/security/sbom/config.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package sbom import ( diff --git a/pkg/security/sbom/config_test.go b/pkg/security/sbom/config_test.go index 3c2ca3f9..56a5ffaf 100644 --- a/pkg/security/sbom/config_test.go +++ b/pkg/security/sbom/config_test.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package sbom import ( diff --git a/pkg/security/sbom/formats.go b/pkg/security/sbom/formats.go index 7e398cc7..b5ea300c 100644 --- a/pkg/security/sbom/formats.go +++ b/pkg/security/sbom/formats.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + // Package sbom provides Software Bill of Materials (SBOM) generation and attestation functionality package sbom diff --git a/pkg/security/sbom/formats_test.go b/pkg/security/sbom/formats_test.go index 6bd3f27c..b814db9d 100644 --- a/pkg/security/sbom/formats_test.go +++ b/pkg/security/sbom/formats_test.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package sbom import ( diff --git a/pkg/security/sbom/generator.go b/pkg/security/sbom/generator.go index 7ab1ddcd..d7c86850 100644 --- a/pkg/security/sbom/generator.go +++ b/pkg/security/sbom/generator.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package sbom import ( diff --git a/pkg/security/sbom/generator_extra_test.go b/pkg/security/sbom/generator_extra_test.go index e9bacd1b..2f6711e6 100644 --- a/pkg/security/sbom/generator_extra_test.go +++ b/pkg/security/sbom/generator_extra_test.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package sbom import ( diff --git a/pkg/security/sbom/integration_test.go b/pkg/security/sbom/integration_test.go index 09b84491..662ab84f 100644 --- a/pkg/security/sbom/integration_test.go +++ b/pkg/security/sbom/integration_test.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + //go:build integration // +build integration diff --git a/pkg/security/sbom/syft.go b/pkg/security/sbom/syft.go index c451d70f..b50cb2ee 100644 --- a/pkg/security/sbom/syft.go +++ b/pkg/security/sbom/syft.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package sbom import ( diff --git a/pkg/security/sbom/syft_exec_test.go b/pkg/security/sbom/syft_exec_test.go index b98f825e..60292c4f 100644 --- a/pkg/security/sbom/syft_exec_test.go +++ b/pkg/security/sbom/syft_exec_test.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package sbom import ( diff --git a/pkg/security/sbom/syft_test.go b/pkg/security/sbom/syft_test.go index 0dbb9771..51a2e46d 100644 --- a/pkg/security/sbom/syft_test.go +++ b/pkg/security/sbom/syft_test.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package sbom import ( diff --git a/pkg/security/scan/cache_edge_test.go b/pkg/security/scan/cache_edge_test.go index 95faea92..73b621f5 100644 --- a/pkg/security/scan/cache_edge_test.go +++ b/pkg/security/scan/cache_edge_test.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package scan import ( diff --git a/pkg/security/scan/config.go b/pkg/security/scan/config.go index c2b10d0a..b78aedc1 100644 --- a/pkg/security/scan/config.go +++ b/pkg/security/scan/config.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package scan import "fmt" diff --git a/pkg/security/scan/config_test.go b/pkg/security/scan/config_test.go index 467fe756..5137d397 100644 --- a/pkg/security/scan/config_test.go +++ b/pkg/security/scan/config_test.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package scan import ( diff --git a/pkg/security/scan/extractors_test.go b/pkg/security/scan/extractors_test.go index 0a0e510a..9ad30d55 100644 --- a/pkg/security/scan/extractors_test.go +++ b/pkg/security/scan/extractors_test.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package scan import ( diff --git a/pkg/security/scan/grype.go b/pkg/security/scan/grype.go index 6b408dfd..27a68390 100644 --- a/pkg/security/scan/grype.go +++ b/pkg/security/scan/grype.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package scan import ( diff --git a/pkg/security/scan/grype_test.go b/pkg/security/scan/grype_test.go index fe14b2ef..6cee0e60 100644 --- a/pkg/security/scan/grype_test.go +++ b/pkg/security/scan/grype_test.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package scan import ( diff --git a/pkg/security/scan/integration_test.go b/pkg/security/scan/integration_test.go index 9e6c12b8..e4b88c3d 100644 --- a/pkg/security/scan/integration_test.go +++ b/pkg/security/scan/integration_test.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + //go:build integration // +build integration diff --git a/pkg/security/scan/policy.go b/pkg/security/scan/policy.go index a0f51ad9..75289fa1 100644 --- a/pkg/security/scan/policy.go +++ b/pkg/security/scan/policy.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package scan import ( diff --git a/pkg/security/scan/policy_test.go b/pkg/security/scan/policy_test.go index 980898a9..f691a980 100644 --- a/pkg/security/scan/policy_test.go +++ b/pkg/security/scan/policy_test.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package scan import ( diff --git a/pkg/security/scan/policy_warn_test.go b/pkg/security/scan/policy_warn_test.go index 93041ac4..517ea6c1 100644 --- a/pkg/security/scan/policy_warn_test.go +++ b/pkg/security/scan/policy_warn_test.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package scan import ( diff --git a/pkg/security/scan/result.go b/pkg/security/scan/result.go index b9386eb8..9f472c20 100644 --- a/pkg/security/scan/result.go +++ b/pkg/security/scan/result.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package scan import ( diff --git a/pkg/security/scan/result_more_test.go b/pkg/security/scan/result_more_test.go index ce6c8d93..20f0801b 100644 --- a/pkg/security/scan/result_more_test.go +++ b/pkg/security/scan/result_more_test.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package scan import ( diff --git a/pkg/security/scan/result_test.go b/pkg/security/scan/result_test.go index deafe7c5..7f719cf9 100644 --- a/pkg/security/scan/result_test.go +++ b/pkg/security/scan/result_test.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package scan import ( diff --git a/pkg/security/scan/scan_fakebin_test.go b/pkg/security/scan/scan_fakebin_test.go index 49457419..cf56247a 100644 --- a/pkg/security/scan/scan_fakebin_test.go +++ b/pkg/security/scan/scan_fakebin_test.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package scan import ( diff --git a/pkg/security/scan/scanner.go b/pkg/security/scan/scanner.go index 23cb8cea..b8348b40 100644 --- a/pkg/security/scan/scanner.go +++ b/pkg/security/scan/scanner.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package scan import ( diff --git a/pkg/security/scan/scanner_version_test.go b/pkg/security/scan/scanner_version_test.go index 27162d6d..7e62cad5 100644 --- a/pkg/security/scan/scanner_version_test.go +++ b/pkg/security/scan/scanner_version_test.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package scan import ( diff --git a/pkg/security/scan/trivy.go b/pkg/security/scan/trivy.go index 5f91e8ae..e4111cf3 100644 --- a/pkg/security/scan/trivy.go +++ b/pkg/security/scan/trivy.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package scan import ( diff --git a/pkg/security/scan/trivy_test.go b/pkg/security/scan/trivy_test.go index 6588e225..7fda4ee1 100644 --- a/pkg/security/scan/trivy_test.go +++ b/pkg/security/scan/trivy_test.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package scan import ( diff --git a/pkg/security/signing/config.go b/pkg/security/signing/config.go index 67246345..2dd08ade 100644 --- a/pkg/security/signing/config.go +++ b/pkg/security/signing/config.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package signing import ( diff --git a/pkg/security/signing/config_test.go b/pkg/security/signing/config_test.go index 4ba15ea8..c5a9be61 100644 --- a/pkg/security/signing/config_test.go +++ b/pkg/security/signing/config_test.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package signing import ( diff --git a/pkg/security/signing/e2e_test.go b/pkg/security/signing/e2e_test.go index 981e5387..74dadc5b 100644 --- a/pkg/security/signing/e2e_test.go +++ b/pkg/security/signing/e2e_test.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + //go:build e2e // +build e2e diff --git a/pkg/security/signing/integration_test.go b/pkg/security/signing/integration_test.go index 9f452f83..84e853eb 100644 --- a/pkg/security/signing/integration_test.go +++ b/pkg/security/signing/integration_test.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + //go:build integration // +build integration diff --git a/pkg/security/signing/keybased.go b/pkg/security/signing/keybased.go index 165f08b4..f46acf7f 100644 --- a/pkg/security/signing/keybased.go +++ b/pkg/security/signing/keybased.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package signing import ( diff --git a/pkg/security/signing/keybased_test.go b/pkg/security/signing/keybased_test.go index 836b73ab..17d12c55 100644 --- a/pkg/security/signing/keybased_test.go +++ b/pkg/security/signing/keybased_test.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package signing import ( diff --git a/pkg/security/signing/keyless.go b/pkg/security/signing/keyless.go index c1d6e6f8..5a895360 100644 --- a/pkg/security/signing/keyless.go +++ b/pkg/security/signing/keyless.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package signing import ( diff --git a/pkg/security/signing/keyless_test.go b/pkg/security/signing/keyless_test.go index b20a6099..2c9ab843 100644 --- a/pkg/security/signing/keyless_test.go +++ b/pkg/security/signing/keyless_test.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package signing import ( diff --git a/pkg/security/signing/signer.go b/pkg/security/signing/signer.go index e35471e5..2fe938dc 100644 --- a/pkg/security/signing/signer.go +++ b/pkg/security/signing/signer.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package signing import ( diff --git a/pkg/security/signing/signing_more_test.go b/pkg/security/signing/signing_more_test.go index 71ffc448..8f71a5b6 100644 --- a/pkg/security/signing/signing_more_test.go +++ b/pkg/security/signing/signing_more_test.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package signing import ( diff --git a/pkg/security/signing/verifier.go b/pkg/security/signing/verifier.go index 8a07bba8..21a25823 100644 --- a/pkg/security/signing/verifier.go +++ b/pkg/security/signing/verifier.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package signing import ( diff --git a/pkg/security/signing/verifier_test.go b/pkg/security/signing/verifier_test.go index 0375cb88..0ca05d0e 100644 --- a/pkg/security/signing/verifier_test.go +++ b/pkg/security/signing/verifier_test.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package signing import ( diff --git a/pkg/security/tools/command.go b/pkg/security/tools/command.go index 7b06215f..53c4bc61 100644 --- a/pkg/security/tools/command.go +++ b/pkg/security/tools/command.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package tools import ( diff --git a/pkg/security/tools/coverage_gold_test.go b/pkg/security/tools/coverage_gold_test.go index e114c5c1..f8889c86 100644 --- a/pkg/security/tools/coverage_gold_test.go +++ b/pkg/security/tools/coverage_gold_test.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package tools import ( diff --git a/pkg/security/tools/installer.go b/pkg/security/tools/installer.go index 8523e2cc..cf3f66f9 100644 --- a/pkg/security/tools/installer.go +++ b/pkg/security/tools/installer.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package tools import ( diff --git a/pkg/security/tools/installer_test.go b/pkg/security/tools/installer_test.go index 2d9eb7f9..5aa1dd03 100644 --- a/pkg/security/tools/installer_test.go +++ b/pkg/security/tools/installer_test.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package tools import ( diff --git a/pkg/security/tools/registry.go b/pkg/security/tools/registry.go index d9272411..2bbb2659 100644 --- a/pkg/security/tools/registry.go +++ b/pkg/security/tools/registry.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package tools import ( diff --git a/pkg/security/tools/version.go b/pkg/security/tools/version.go index a87453c6..15f672bb 100644 --- a/pkg/security/tools/version.go +++ b/pkg/security/tools/version.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package tools import ( diff --git a/pkg/security/tools/version_test.go b/pkg/security/tools/version_test.go index 76e8b74d..76d0bd96 100644 --- a/pkg/security/tools/version_test.go +++ b/pkg/security/tools/version_test.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package tools import ( diff --git a/pkg/template/expressions.go b/pkg/template/expressions.go index 6a61b5f3..44fb8112 100644 --- a/pkg/template/expressions.go +++ b/pkg/template/expressions.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package template import ( diff --git a/pkg/template/expressions_test.go b/pkg/template/expressions_test.go index 1949767a..e1c0b4a3 100644 --- a/pkg/template/expressions_test.go +++ b/pkg/template/expressions_test.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package template import ( diff --git a/pkg/template/extensions.go b/pkg/template/extensions.go index 665c6091..8548c3bb 100644 --- a/pkg/template/extensions.go +++ b/pkg/template/extensions.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package template import ( diff --git a/pkg/template/template.go b/pkg/template/template.go index 99c7cfa8..ffa42c46 100644 --- a/pkg/template/template.go +++ b/pkg/template/template.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package template import ( diff --git a/pkg/template/template_more_test.go b/pkg/template/template_more_test.go index 8d82632c..bed6f705 100644 --- a/pkg/template/template_more_test.go +++ b/pkg/template/template_more_test.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package template import ( diff --git a/pkg/template/template_test.go b/pkg/template/template_test.go index 433f009a..4ca6e6af 100644 --- a/pkg/template/template_test.go +++ b/pkg/template/template_test.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package template import ( diff --git a/pkg/util/console.go b/pkg/util/console.go index be3dfd09..ce64e91e 100644 --- a/pkg/util/console.go +++ b/pkg/util/console.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package util import ( diff --git a/pkg/util/console_more_test.go b/pkg/util/console_more_test.go index 23094571..4668a568 100644 --- a/pkg/util/console_more_test.go +++ b/pkg/util/console_more_test.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package util import ( diff --git a/pkg/util/exec.go b/pkg/util/exec.go index 5a154126..6145193e 100644 --- a/pkg/util/exec.go +++ b/pkg/util/exec.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package util import ( diff --git a/pkg/util/exec_more_test.go b/pkg/util/exec_more_test.go index 96e4a6e0..bc195947 100644 --- a/pkg/util/exec_more_test.go +++ b/pkg/util/exec_more_test.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package util import ( diff --git a/pkg/util/json.go b/pkg/util/json.go index 63ebf7ae..f31360e3 100644 --- a/pkg/util/json.go +++ b/pkg/util/json.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package util import "encoding/json" diff --git a/pkg/util/json_test.go b/pkg/util/json_test.go index 03d79150..10f8f906 100644 --- a/pkg/util/json_test.go +++ b/pkg/util/json_test.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package util import ( @@ -7,8 +10,8 @@ import ( ) type sampleTarget struct { - Name string `json:"name"` - Count int `json:"count"` + Name string `json:"name"` + Count int `json:"count"` Tags []string `json:"tags"` } diff --git a/pkg/util/logger.go b/pkg/util/logger.go index 23ecc8b8..c229b598 100644 --- a/pkg/util/logger.go +++ b/pkg/util/logger.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package util import ( diff --git a/pkg/util/logger_more_test.go b/pkg/util/logger_more_test.go index 461e1c80..2c2fbf5e 100644 --- a/pkg/util/logger_more_test.go +++ b/pkg/util/logger_more_test.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package util import ( diff --git a/pkg/util/map.go b/pkg/util/map.go index a701dd6e..a513bd55 100644 --- a/pkg/util/map.go +++ b/pkg/util/map.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package util import ( @@ -71,7 +74,10 @@ func getValPart(key string, value interface{}, overallKey string) (res interface case []interface{}: if i, err = strconv.ParseInt(key, 10, 64); err == nil { array := value - if int(i) < len(array) { + // Bounds-check in int64 (no narrowing int(i) conversion) and reject + // negative indices before indexing — guards the signed-conversion / + // out-of-range class (CWE-190/681) and a negative-index panic. + if i >= 0 && i < int64(len(array)) { res = array[i] } else { err = fmt.Errorf("index out of bounds. [index:%d] [array:%v] of [path:%s]", i, array, overallKey) diff --git a/pkg/util/map_boundscheck_test.go b/pkg/util/map_boundscheck_test.go new file mode 100644 index 00000000..523b38cc --- /dev/null +++ b/pkg/util/map_boundscheck_test.go @@ -0,0 +1,44 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + +package util + +import ( + "testing" + + . "github.com/onsi/gomega" +) + +// TestGetValue_SliceIndexBounds pins the bounds-checking of a numeric key used +// to index a []interface{}: a negative index must return an "index out of +// bounds" error rather than panicking (regression for the CWE-190/681 fix in +// getValPart), and an out-of-range positive index must error too. +func TestGetValue_SliceIndexBounds(t *testing.T) { + arr := []interface{}{"a", "b", "c"} + + cases := []struct { + name string + key string + want interface{} + wantErr string + }{ + {"valid index 0", "0", "a", ""}, + {"valid last index", "2", "c", ""}, + {"negative index errors (no panic)", "-1", nil, "index out of bounds"}, + {"index == len errors", "3", nil, "index out of bounds"}, + {"large index errors", "9999", nil, "index out of bounds"}, + } + for _, tc := range cases { + t.Run(tc.name, func(t *testing.T) { + RegisterTestingT(t) + got, err := GetValue(tc.key, arr) + if tc.wantErr != "" { + Expect(err).To(HaveOccurred()) + Expect(err.Error()).To(ContainSubstring(tc.wantErr)) + return + } + Expect(err).ToNot(HaveOccurred()) + Expect(got).To(Equal(tc.want)) + }) + } +} diff --git a/pkg/util/map_more_test.go b/pkg/util/map_more_test.go index ff768da3..3a384a1d 100644 --- a/pkg/util/map_more_test.go +++ b/pkg/util/map_more_test.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package util import ( diff --git a/pkg/util/map_test.go b/pkg/util/map_test.go index c87ffe1a..17e9ab9a 100644 --- a/pkg/util/map_test.go +++ b/pkg/util/map_test.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package util import ( diff --git a/pkg/util/split.go b/pkg/util/split.go index 6baa57c9..daa775df 100644 --- a/pkg/util/split.go +++ b/pkg/util/split.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package util import ( diff --git a/pkg/util/split_more_test.go b/pkg/util/split_more_test.go index acc3cb93..67249a3a 100644 --- a/pkg/util/split_more_test.go +++ b/pkg/util/split_more_test.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package util import ( diff --git a/pkg/util/string.go b/pkg/util/string.go index 6484496f..b5055b69 100644 --- a/pkg/util/string.go +++ b/pkg/util/string.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package util import ( diff --git a/pkg/util/string_extra_test.go b/pkg/util/string_extra_test.go index 252146b6..774bf4e8 100644 --- a/pkg/util/string_extra_test.go +++ b/pkg/util/string_extra_test.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package util import ( diff --git a/pkg/util/string_more_test.go b/pkg/util/string_more_test.go index 22013915..3d85739a 100644 --- a/pkg/util/string_more_test.go +++ b/pkg/util/string_more_test.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package util import ( diff --git a/pkg/util/string_test.go b/pkg/util/string_test.go index 49a1b6bf..29673394 100644 --- a/pkg/util/string_test.go +++ b/pkg/util/string_test.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package util import ( diff --git a/pkg/util/test/console_mock.go b/pkg/util/test/console_mock.go index 063a4fb5..72e2a6c1 100644 --- a/pkg/util/test/console_mock.go +++ b/pkg/util/test/console_mock.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + package test import ( diff --git a/tools.go b/tools.go index 01fb1694..6987e358 100644 --- a/tools.go +++ b/tools.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Simple Container + //go:build tools //go:generate go build -o ./bin/mockery github.com/vektra/mockery/v2 diff --git a/welder.yaml b/welder.yaml index 4c3ce4df..c0023016 100644 --- a/welder.yaml +++ b/welder.yaml @@ -119,13 +119,17 @@ tasks: - sc stack secret-get -s dist dockerhub-cicd-token | docker login --username simplecontainer --password-stdin build-cloud-helpers: runOn: host + env: + CGO_ENABLED: "0" # static, host-libc-independent build for reproducibility script: - - go build -ldflags "${arg:ld-flags}" -o ${project:root}/dist/cloud-helpers ./cmd/cloud-helpers + - go build -trimpath -buildvcs=false -ldflags "${arg:ld-flags}" -o ${project:root}/dist/cloud-helpers ./cmd/cloud-helpers build-github-actions: runOn: host + env: + CGO_ENABLED: "0" # static, host-libc-independent build for reproducibility script: - echo "Building GitHub Actions binary..." - - go build -ldflags "${arg:ld-flags}" -o ${project:root}/dist/github-actions ./cmd/github-actions + - go build -trimpath -buildvcs=false -ldflags "${arg:ld-flags}" -o ${project:root}/dist/github-actions ./cmd/github-actions - echo "✅ GitHub Actions binary built successfully" test: runOn: host @@ -255,8 +259,8 @@ tasks: script: - echo "Building for ${GOOS}/${GOARCH}..." - if [ "${GOOS}" = "windows" ]; then export EXT=".exe"; else export EXT=""; fi - - go build -ldflags "${arg:ld-flags}" -o ${project:root}/dist/${GOOS}-${GOARCH}/sc${EXT} ./cmd/sc - - cd ${project:root}/dist/${GOOS}-${GOARCH} && tar -czf sc-${GOOS}-${GOARCH}.tar.gz sc${EXT} + - go build -trimpath -buildvcs=false -ldflags "${arg:ld-flags}" -o ${project:root}/dist/${GOOS}-${GOARCH}/sc${EXT} ./cmd/sc + - cd ${project:root}/dist/${GOOS}-${GOARCH} && tar --sort=name --mtime='@0' --owner=0 --group=0 --numeric-owner --mode='u=rwx,go=rx' -cf - sc${EXT} | gzip -9 -n > sc-${GOOS}-${GOARCH}.tar.gz - mv ${project:root}/dist/${GOOS}-${GOARCH}/sc-${GOOS}-${GOARCH}.tar.gz ${project:root}/.sc/stacks/dist/bundle/sc-${GOOS}-${GOARCH}.tar.gz - cp ${project:root}/.sc/stacks/dist/bundle/sc-${GOOS}-${GOARCH}.tar.gz ${project:root}/.sc/stacks/dist/bundle/sc-${GOOS}-${GOARCH}-v${project:version}.tar.gz deploy: @@ -300,7 +304,7 @@ tasks: script: - echo "Building static github-actions binary for staging (Alpine compatible)..." - mkdir -p ${project:root}/bin - - go build -ldflags "${arg:ld-flags}" -a -installsuffix cgo -o ${project:root}/bin/github-actions ./cmd/github-actions + - go build -trimpath -buildvcs=false -ldflags "${arg:ld-flags}" -a -installsuffix cgo -o ${project:root}/bin/github-actions ./cmd/github-actions build-github-actions-staging-push: runOn: host script: