diff --git a/.github/workflows/security-scan.yml b/.github/workflows/security-scan.yml index 7a89421..04f727d 100644 --- a/.github/workflows/security-scan.yml +++ b/.github/workflows/security-scan.yml @@ -51,7 +51,7 @@ jobs: run: docker tag ghcr.io/endava/docker-php:${{ env.PHP_VERSION }} php-${{ env.PHP_VERSION }} - name: "IMAGE_SIZE Env" - run: echo "IMAGE_SIZE=`docker inspect php-${{ env.PHP_VERSION }} --format json | jq .[0].Size | numfmt --to=si`" > $GITHUB_ENV + run: echo "IMAGE_SIZE=`docker image save php-${{ env.PHP_VERSION }} | gzip | wc -c | numfmt --to=si`" > $GITHUB_ENV - run: wget "https://img.shields.io/static/v1.png?label=${{ env.PHP_VERSION }}&message=${{ env.IMAGE_SIZE }}&color=blue" -O size-status.png