Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
47 changes: 47 additions & 0 deletions .github/workflows/publish-container-gh.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: Caddy Agent Github Image CI

on:
workflow_dispatch:
push:
branches: [ "main"]
paths:
- Dockerfile
- caddy-agent-watch.py

jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write # Required to push to GHCR

steps:
- uses: actions/checkout@v3

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🟠 Major

🧩 Analysis chain

🌐 Web query:

actions/checkout v3 deprecated GitHub Actions latest version 2025

💡 Result:

  • Yes—actions/checkout@v3 is effectively deprecated/legacy because it was built for the Node.js 16 GitHub Actions runtime, and GitHub completed the platform transition away from Node 16. GitHub began enforcing Node 20 by default on June 3, 2024 [2], and removed Node 16 from the Actions runner on November 12, 2024, so Node 16–based actions can no longer run [3].
  • Latest actions/checkout major version (as of Feb 2026): v6. GitHub’s official repo/Marketplace docs show Checkout v6 as the current major version [1].
  • What to use in 2025+ workflows: switch to a maintained major tag, typically:
    - uses: actions/checkout@v6
    (Pinning to the major tag is the recommended pattern for GitHub-maintained actions.) [1]

Sources: official actions/checkout repo/Marketplace page [1], GitHub Actions changelog (Node20 enforcement + Node16 end-of-life) [2][3].


Update deprecated actions/checkout@v3 to latest version to fix workflow failure.

actions/checkout@v3 is deprecated because it relies on the Node.js 16 runtime, which GitHub removed from Actions runners on November 12, 2024. The workflow will fail at runtime without an update. The latest stable version is v6.

🧰 Tools
🪛 actionlint (1.7.10)

[error] 19-19: the runner of "actions/checkout@v3" action is too old to run on GitHub Actions. update the action's version to fix this issue

(action)

🤖 Prompt for AI Agents
In @.github/workflows/publish-container-gh.yml at line 19, Update the GitHub
Actions step that uses actions/checkout@v3 to the current stable release by
replacing the usage reference with actions/checkout@v6; locate the line
containing "uses: actions/checkout@v3" in the workflow and change it to "uses:
actions/checkout@v6" to ensure the action runs on supported GitHub Actions
runtimes.


- name: Log in to GitHub Container Registry
uses: docker/login-action@v2.2.0
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Docker meta
id: meta
uses: docker/metadata-action@v4.6.0
with:
# Lowercase version of the repo name is standard for GHCR
images: |
ghcr.io/${{ github.repository }}
flavor: |
latest=auto
tags: |
type=raw,value=latest,enable={{is_default_branch}}
type=raw,value={{ date 'YYYYMMDD-HHmmss' }},prefix={{ sha }}-

- name: Build and push Docker image
uses: docker/build-push-action@v4.1.1
with:
context: .
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
Loading
Loading