ci: Drop `tags` input for `docker/build-push-action`
What changed, and why it matters
This is a routine cleanup of the project's automated CI (Continuous Integration) configuration. It removes an unused 'tag' input from GitHub Actions Docker build steps and switches to referencing the most recently built Docker image by ID instead of by tag. There is no security issue here.
No action required. This is a benign CI configuration cleanup.
Security signals we found
No strong security signals were identified.
Evidence from the diff
The commit removes the tags input from docker/build-push-action and a custom run-in-docker-action because tags are not needed when images are only built for local use and caching via GitHub Actions cache (type=gha). The run step now uses $(docker images -q | head -n1) to pick the latest image instead of ${{ inputs.tag }}. This is a CI maintenance refactor with no cryptographic, build-system, or supply-chain security implications.
Changed components
.github/actions/run-in-docker-action/action.yml.github/workflows/ci.ymlInspect captured patch +8 / −31
diff --git a/.github/actions/run-in-docker-action/action.yml b/.github/actions/run-in-docker-action/action.yml
index f9bd474..2af2364 100644
--- a/.github/actions/run-in-docker-action/action.yml
+++ b/.github/actions/run-in-docker-action/action.yml
@@ -4,9 +4,6 @@ inputs:
dockerfile:
description: 'A Dockerfile that defines an image'
required: true
- tag:
- description: 'A tag of an image'
- required: true
scope:
description: 'A cached image scope'
required: false
@@ -26,7 +23,6 @@ runs:
with:
context: .
file: ${{ inputs.dockerfile }}
- tags: ${{ inputs.tag }}
load: true
cache-from: type=gha,scope=${{ inputs.scope }}
@@ -36,7 +32,6 @@ runs:
with:
context: .
file: ${{ inputs.dockerfile }}
- tags: ${{ inputs.tag }}
load: true
cache-from: type=gha,scope=${{ inputs.scope }}
@@ -51,7 +46,8 @@ runs:
$(echo '${{ toJSON(env) }}' | jq -r 'keys[] | "--env \(.) "') \
--volume ${{ github.workspace }}:${{ github.workspace }} \
--workdir ${{ github.workspace }} \
- ${{ inputs.tag }} bash -c "
+ $(docker images -q | head -n1) \
+ bash -c "
git config --global --add safe.directory ${{ github.workspace }}
${{ inputs.command }}
"
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 83b3824..49f16b8 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -70,7 +70,6 @@ jobs:
uses: docker/build-push-action@v5
with:
file: ./ci/linux-debian.Dockerfile
- tags: ${{ matrix.arch }}-debian-image
cache-from: type=gha,scope=${{ runner.arch }}
cache-to: type=gha,scope=${{ runner.arch }},mode=min
@@ -116,7 +115,6 @@ jobs:
uses: ./.github/actions/run-in-docker-action
with:
dockerfile: ./ci/linux-debian.Dockerfile
- tag: x64-debian-image
- name: Print logs
uses: ./.github/actions/print-logs
@@ -152,7 +150,6 @@ jobs:
uses: ./.github/actions/run-in-docker-action
with:
dockerfile: ./ci/linux-debian.Dockerfile
- tag: x64-debian-image
- name: Print logs
uses: ./.github/actions/print-logs
@@ -184,7 +181,6 @@ jobs:
uses: ./.github/actions/run-in-docker-action
with:
dockerfile: ./ci/linux-debian.Dockerfile
- tag: x64-debian-image
- name: Print logs
uses: ./.github/actions/print-logs
@@ -225,7 +221,6 @@ jobs:
uses: ./.github/actions/run-in-docker-action
with:
dockerfile: ./ci/linux-debian.Dockerfile
- tag: x64-debian-image
- name: Print logs
uses: ./.github/actions/print-logs
@@ -265,7 +260,6 @@ jobs:
uses: ./.github/actions/run-in-docker-action
with:
dockerfile: ./ci/linux-debian.Dockerfile
- tag: arm64-debian-image
- name: Print logs
uses: ./.github/actions/print-logs
@@ -297,7 +291,6 @@ jobs:
uses: ./.github/actions/run-in-docker-action
with:
dockerfile: ./ci/linux-debian.Dockerfile
- tag: x64-debian-image
- name: Print logs
uses: ./.github/actions/print-logs
@@ -313,28 +306,22 @@ jobs:
fail-fast: false
matrix:
include:
- - docker_arch: x64
- runner: ubuntu-latest
+ - runner: ubuntu-latest
binary_arch: x64
env_vars: { CC: 'clang', ASM: 'auto' }
- - docker_arch: x64
- runner: ubuntu-latest
+ - runner: ubuntu-latest
binary_arch: i686
env_vars: { CC: 'i686-linux-gnu-gcc', HOST: 'i686-linux-gnu', ASM: 'auto' }
- - docker_arch: arm64
- runner: ubuntu-24.04-arm
+ - runner: ubuntu-24.04-arm
binary_arch: arm64
env_vars: { CC: 'clang', ASM: 'auto' }
- - docker_arch: x64
- runner: ubuntu-latest
+ - runner: ubuntu-latest
binary_arch: x64
env_vars: { CC: 'clang', ASM: 'no', ECMULTGENKB: 2, ECMULTWINDOW: 2 }
- - docker_arch: x64
- runner: ubuntu-latest
+ - runner: ubuntu-latest
binary_arch: i686
env_vars: { CC: 'i686-linux-gnu-gcc', HOST: 'i686-linux-gnu', ASM: 'no', ECMULTGENKB: 2, ECMULTWINDOW: 2 }
- - docker_arch: arm64
- runner: ubuntu-24.04-arm
+ - runner: ubuntu-24.04-arm
binary_arch: arm64
env_vars: { CC: 'clang', ASM: 'no', ECMULTGENKB: 2, ECMULTWINDOW: 2 }
@@ -360,7 +347,6 @@ jobs:
uses: ./.github/actions/run-in-docker-action
with:
dockerfile: ./ci/linux-debian.Dockerfile
- tag: ${{ matrix.docker_arch }}-debian-image
- name: Print logs
uses: ./.github/actions/print-logs
@@ -404,7 +390,6 @@ jobs:
uses: ./.github/actions/run-in-docker-action
with:
dockerfile: ./ci/linux-debian.Dockerfile
- tag: x64-debian-image
- name: Print logs
uses: ./.github/actions/print-logs
@@ -455,7 +440,6 @@ jobs:
uses: ./.github/actions/run-in-docker-action
with:
dockerfile: ./ci/linux-debian.Dockerfile
- tag: x64-debian-image
- name: Print logs
uses: ./.github/actions/print-logs
@@ -498,7 +482,6 @@ jobs:
uses: ./.github/actions/run-in-docker-action
with:
dockerfile: ./ci/linux-debian.Dockerfile
- tag: x64-debian-image
- name: Print logs
uses: ./.github/actions/print-logs
@@ -714,7 +697,6 @@ jobs:
uses: ./.github/actions/run-in-docker-action
with:
dockerfile: ./ci/linux-debian.Dockerfile
- tag: x64-debian-image
- name: Print logs
uses: ./.github/actions/print-logs
@@ -733,7 +715,6 @@ jobs:
uses: ./.github/actions/run-in-docker-action
with:
dockerfile: ./ci/linux-debian.Dockerfile
- tag: x64-debian-image
command: |
g++ -Werror include/*.h
clang -Werror -x c++-header include/*.h
Why this scored 15/100
Community notes
Notes can correct, qualify, or add evidence to the AI analysis. Every note shown here has been validated by a human moderator.
The AI analysis stands alone for now. Submit a note if you can add evidence or important context.