Initial commit: Trivy scanning test repository #1
8 new alerts including 3 errors
New alerts in code changed by this pull request
- 3 errors
- 4 warnings
- 1 note
See annotations below for details.
Annotations
Check failure on line 7 in Dockerfile
Code scanning / Hadolint
Use COPY instead of ADD for files and folders Error
Check failure on line 10 in Dockerfile
Code scanning / Hadolint
Use COPY instead of ADD for files and folders Error
Check failure on line 11 in Dockerfile
Code scanning / Hadolint
Use COPY instead of ADD for files and folders Error
Check warning on line 2 in Dockerfile
Code scanning / Hadolint
Using latest is prone to errors if the image will ever update. Pin the version explicitly to a release tag Warning
Check warning on line 4 in Dockerfile
Code scanning / Hadolint
Use WORKDIR to switch to a directory Warning
Check warning on line 18 in Dockerfile
Code scanning / Hadolint
Pin versions in apk add. Instead of apk add <package> use apk add <package>=<version> Warning
Check warning on line 35 in Dockerfile
Code scanning / Hadolint
Use arguments JSON notation for CMD and ENTRYPOINT arguments Warning
Check notice on line 18 in Dockerfile
Code scanning / Hadolint
Use the --no-cache switch to avoid the need to use --update and remove /var/cache/apk/* when done installing packages Note