mirror of
https://github.com/mag37/dockcheck.git
synced 2026-03-15 04:56:30 +01:00
Changed digest inspect
Reported false positive update available due to not matching local hash.
This commit is contained in:
parent
67fb6bef45
commit
c367635974
1 changed files with 1 additions and 1 deletions
|
|
@ -236,7 +236,7 @@ for i in $(podman ps $Stopped --filter "name=$SearchName" --format '{{.Names}}')
|
||||||
# Looping every item over the list of excluded names and skipping
|
# Looping every item over the list of excluded names and skipping
|
||||||
for e in "${Excludes[@]}" ; do [[ "$i" == "$e" ]] && continue 2 ; done
|
for e in "${Excludes[@]}" ; do [[ "$i" == "$e" ]] && continue 2 ; done
|
||||||
RepoUrl=$(podman inspect "$i" --format='{{.ImageName}}')
|
RepoUrl=$(podman inspect "$i" --format='{{.ImageName}}')
|
||||||
LocalHash=$(podman image inspect "$RepoUrl" --format '{{.Digest}}')
|
LocalHash=$(podman image inspect "$RepoUrl" --format '{{.RepoDigests}}')
|
||||||
# Checking for errors while setting the variable
|
# Checking for errors while setting the variable
|
||||||
if RegHash=$(${t_out} $regbin -v error image digest --list "$RepoUrl" 2>&1) ; then
|
if RegHash=$(${t_out} $regbin -v error image digest --list "$RepoUrl" 2>&1) ; then
|
||||||
if [[ "$LocalHash" == *"$RegHash"* ]] ; then
|
if [[ "$LocalHash" == *"$RegHash"* ]] ; then
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue