Closed kumarpramod closed 1 year ago
Thanks for reporting! the problem is the arm64 filter regex accepts also mentions of "ARM" , in the newer version this is fixed and the correct ARM64 is chosen.
@kumarpramod You can try this feature to see if now working: ghcr.io/devcontainers-contrib/features/trivy:1.0.9
- it uses the latest nanolayer version and working correctly on my QEMU environment (I dont have a mac)
@danielbraun89 - I'm a colleague of @kumarpramod, The suggested solution seems to work for me at least. I'm running M1, ARM64. I've pinged @kumarpramod internally and asked them to confirm as well.
@SebRosander thanks for update! closing for now, will reopen if this will recure
@danielbraun89 It is still broken for me on the mentioned version with the same error. I pinned it to 1.0.9
as mentioned in https://github.com/devcontainers-contrib/nanolayer/issues/54#issuecomment-1741742999 to make sure that I have the fix, but no luck.
Complete log: remoteContainers-2023-10-30T18-03-01.836Z.log
The interesting parts:
#0 0.147 ===========================================================================
#0 0.147 Feature : Trivy (via Github Releases)
#0 0.147 Description : Trivy is a comprehensive and versatile security scanner. It finds vulnerabilities, misconfigurations, secrets, SBOM in containers, Kubernetes, code repositories, clouds and more.
#0 0.147 Id : ghcr.io/devcontainers-contrib/features/trivy
#0 0.147 Version : 1.0.9
#0 0.147 Documentation : http://github.com/devcontainers-contrib/features/tree/main/src/trivy
#0 0.147 Options :
#0 0.147 VERSION="0.46.1"
#0 0.147 ===========================================================================
...
#0 7.649 nanolayer.installers.gh_release.resolvers.asset_resolver.AssetResolver.AssetResolverError:
Too many matches found: ['trivy_0.46.1_Linux-64bit.tar.gz', 'trivy_0.46.1_Linux-ARM.tar.gz']
Version: 1.78.2
Commit: b3e4e68a0bc097f0ae7907b217c1119af9e03435
Date: 2023-05-10T14:47:05.613Z
Electron: 22.5.2
Chromium: 108.0.5359.215
Node.js: 16.17.1
V8: 10.8.168.25-electron.0
OS: Linux x64 6.1.60
Sandboxed: No
{
"name": "Ubuntu",
"image": "mcr.microsoft.com/devcontainers/base:jammy",
"runArgs": ["--network=host"],
"features": {
"ghcr.io/devcontainers/features/docker-outside-of-docker:1": {
"moby": true,
"installDockerBuildx": true,
"version": "20.10.24",
"dockerDashComposeVersion": "v2"
},
"ghcr.io/devcontainers/features/git:1": {
"ppa": true,
"version": "2.40.1"
},
"ghcr.io/devcontainers/features/go:1": {
"version": "1.20.4"
},
"ghcr.io/devcontainers/features/java:1": {
"installGradle": true,
"installMaven": false,
"installAnt": false,
"version": "11.0.12-open",
"jdkDistro": "open",
"gradleVersion": "7.5.1",
"mavenVersion": "3.8.6",
"antVersion": "1.10.12"
},
"ghcr.io/devcontainers/features/node:1": {
"nodeGypDependencies": true,
"version": "18.16.0"
},
"ghcr.io/devcontainers/features/rust:1": {
"version": "1.63",
"profile": "complete"
},
"ghcr.io/devcontainers-contrib/features/actions-runner:1": {
"version": "latest",
"dotnetVersion": "latest"
},
"ghcr.io/devcontainers-contrib/features/curl-apt-get:1": {},
"ghcr.io/devcontainers-contrib/features/dive:1": {
"version": "v0.10.0"
},
"ghcr.io/devcontainers-contrib/features/gitmux:1": {
"version": "v0.10.2"
},
"ghcr.io/devcontainers-contrib/features/ionic-cli:2": {
"version": "7.1.1"
},
"ghcr.io/devcontainers-contrib/features/kind:1": {
"version": "v0.18.0"
},
"ghcr.io/devcontainers-contrib/features/protoc:1": {
"version": "v3.20.3"
},
"ghcr.io/devcontainers-contrib/features/trivy:1.0.9": {
"version": "0.46.1"
}
},
"customizations": {
"vscode": {
"extensions": [
"bierner.markdown-mermaid",
"mhutchie.git-graph",
"alefragnani.bookmarks",
"yzhang.markdown-all-in-one",
"trabpukcip.vscode-npm-scripts",
"jebbs.plantuml",
"ms-vscode-remote.vscode-remote-extensionpack",
"juanblanco.solidity",
"dbaeumer.vscode-eslint",
"42crunch.vscode-openapi",
"esbenp.prettier-vscode",
"eamodio.gitlens",
"streetsidesoftware.code-spell-checker",
"github.vscode-pull-request-github",
"codeandstuff.package-json-upgrade"
]
}
}
}
While using https://github.com/devcontainers-contrib/features/blob/main/src/trivy/README.md devcontainer feature.
It fails with _"nanolayer.installers.gh_release.resolvers.asset_resolver.AssetResolver.AssetResolverError: Too many matches found: ['trivy_0.45.0_Linux-ARM.tar.gz', 'trivy_0.45.0Linux-ARM64.tar.gz']"
I have tried to use specific version of
trivy
but that did not help eitherFull Logs are below