
Security News
PodRocket Podcast: Inside the Recent npm Supply Chain Attacks
Socket CEO Feross Aboukhadijeh discusses the recent npm supply chain attacks on PodRocket, covering novel attack vectors and how developers can protect themselves.
github.com/goplugin/plugin-testing-framework/tools/ecrimagefetcher
This Go script fetches the latest image tags from an AWS ECR repository based on specified criteria such as a grep string and optional semantic version constraints. It sorts and filters the tags and returns a specified number of the latest ones (according to semantic versioning).
go run main.go <repository_name> <grep_string> <count> [<semver_constraints>]
go run main.go 'my-repo' '^v[0-9]+\.[0-9]+\.[0-9]+$' 5 '>=1.0.0, <2.0.0'
<repository_name>
: The name of the ECR repository.<grep_string>
: A regex string to filter the tags.<count>
: The number of latest tags to return.[<semver_constraints>]
: Optional semantic version constraints to filter tags further.repository_name:tag
, e.g.hyperledger/besu:24.3,hyperledger/besu:24.2
.The script will panic and display error messages in the following scenarios:
repository_name
, grep_string
, or count
.grep_string
.count
.repository_name
, grep_string
, and count
.grep_string
regex.repository_name:tag
.AWS_REGION
must be set to the appropriate AWS region.FAQs
Unknown package
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Socket CEO Feross Aboukhadijeh discusses the recent npm supply chain attacks on PodRocket, covering novel attack vectors and how developers can protect themselves.
Security News
Maintainers back GitHub’s npm security overhaul but raise concerns about CI/CD workflows, enterprise support, and token management.
Product
Socket Firewall is a free tool that blocks malicious packages at install time, giving developers proactive protection against rising supply chain attacks.