This repository holds the Dockerfiles for images used in StackRox CI & builds.
To bump the Go version across all Docker images in this repository, use the automated script:
./scripts/bump_go_version.sh <target_version>./scripts/bump_go_version.sh 1.24.6- Validates the target Go version format
- Fetches the SHA256 checksum for
go<version>.linux-amd64.tar.gzfrom https://go.dev/dl/ - Automatically finds all Dockerfiles containing
GOLANG_VERSIONargument - Updates
GOLANG_VERSIONandGOLANG_SHA256in all found Dockerfiles - Creates a new branch named
bump-go-<version> - Commits the changes with a descriptive message
- Pushes the branch to origin
- Creates a pull request (requires GitHub CLI)
- Clean git working tree (no uncommitted changes)
- Push access to the repository
- (Optional) GitHub CLI for automatic PR creation
If GitHub CLI is not installed, the script will provide a link to manually create the PR.