chore: update workflow actions and Docker build secrets (#6539)

* chore: update workflow actions and docker build secrets

* fix: preserve existing mise config

* chore: update build-push action to version 1.5.1 across workflows

* chore: use @major action versions and guard Dockerfile secret exports

- Switch all GitHub Actions from pinned versions (@v4.2.1) to major
  tags (@v4) per GitHub convention.
- Guard /run/secrets/ exports in Dockerfiles with '[ -s ... ]' checks
  so missing optional secrets don't export empty env vars.

Amp-Thread-ID: https://ampcode.com/threads/T-019d4b84-83d7-7455-b971-e5639998ef4f
Co-authored-by: Amp <[email protected]>

---------

Co-authored-by: akshat5302 <[email protected]>
Co-authored-by: Amp <[email protected]>
This commit is contained in:
Aaron
2026-04-02 15:55:58 +05:30
committed by GitHub
co-authored by akshat5302 Amp
parent 635675a559
commit 1709a6c516
32 changed files with 375 additions and 173 deletions
+4 -4
View File
@@ -27,11 +27,11 @@ jobs:
steps:
- name: Checkout repository
uses: actions/checkout@v4
uses: actions/checkout@v6
# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v3
uses: github/codeql-action/init@v4
with:
languages: ${{ matrix.language }}
# If you wish to specify custom queries, you can do so here or in a config file.
@@ -44,7 +44,7 @@ jobs:
# Autobuild attempts to build any compiled languages (C/C++, C#, Go, Java, or Swift).
# If this step fails, then you should remove it and run the build manually (see below)
- name: Autobuild
uses: github/codeql-action/autobuild@v3
uses: github/codeql-action/autobuild@v4
# ️ Command-line programs to run using the OS shell.
# 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun
@@ -57,6 +57,6 @@ jobs:
# ./location_of_script_within_repo/buildscript.sh
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v3
uses: github/codeql-action/analyze@v4
with:
category: "/language:${{matrix.language}}"