fix: pin 8 unpinned action(s),extract 3 unsafe expression(s) to env vars

Automated security fixes applied by Runner Guard (https://github.com/Vigilant-LLC/runner-guard).

Changes:
 .github/workflows/check-ai-co-authors.yml             | 4 +++-
 .github/workflows/check-line-endings.yml              | 5 ++++-
 .github/workflows/pullrequest-ci-run.yml              | 2 +-
 .github/workflows/stable-release.yml                  | 2 +-
 .github/workflows/test-ci.yml                         | 4 ++--
 .github/workflows/update-api-stubs.yml                | 2 +-
 .github/workflows/update-ci-container.yml             | 2 +-
 .github/workflows/update-version.yml                  | 9 ++++++---
 .github/workflows/windows_release_nightly_pytorch.yml | 2 +-
 .github/workflows/windows_release_package.yml         | 2 +-
 10 files changed, 21 insertions(+), 13 deletions(-)
This commit is contained in:
Chris Nyhuis 2026-03-26 03:54:01 -04:00
parent 2a1f402601
commit 860728c235
10 changed files with 21 additions and 13 deletions

View File

@ -16,4 +16,6 @@ jobs:
fetch-depth: 0
- name: Check commits for AI co-author trailers
run: bash .github/scripts/check-ai-co-authors.sh "${{ github.event.pull_request.base.sha }}" "${{ github.event.pull_request.head.sha }}"
run: bash .github/scripts/check-ai-co-authors.sh "${{ github.event.pull_request.base.sha }}" "${PR_HEAD_SHA}"
env:
PR_HEAD_SHA: ${{ github.event.pull_request.head.sha }}

View File

@ -17,7 +17,7 @@ jobs:
- name: Check for Windows line endings (CRLF)
run: |
# Get the list of changed files in the PR
CHANGED_FILES=$(git diff --name-only ${{ github.event.pull_request.base.sha }}..${{ github.event.pull_request.head.sha }})
CHANGED_FILES=$(git diff --name-only ${{ github.event.pull_request.base.sha }}..${PR_HEAD_SHA})
# Flag to track if CRLF is found
CRLF_FOUND=false
@ -38,3 +38,6 @@ jobs:
if [ "$CRLF_FOUND" = true ]; then
exit 1
fi
env:
PR_HEAD_SHA: ${{ github.event.pull_request.head.sha }}

View File

@ -28,7 +28,7 @@ jobs:
runs-on: ${{ matrix.runner_label }}
steps:
- name: Test Workflows
uses: comfy-org/comfy-action@main
uses: comfy-org/comfy-action@2239a587d36772deab9605f1543abf0dc8aa8f92 # main
with:
os: ${{ matrix.os }}
python_version: ${{ matrix.python_version }}

View File

@ -162,7 +162,7 @@ jobs:
ls
- name: Upload binaries to release
uses: softprops/action-gh-release@v2
uses: softprops/action-gh-release@153bb8e04406b158c6c84fc1615b65b24149a1fe # v2
with:
files: ComfyUI_windows_portable_${{ inputs.rel_name }}${{ inputs.rel_extra_name }}.7z
tag_name: ${{ inputs.git_tag }}

View File

@ -40,7 +40,7 @@ jobs:
runs-on: ${{ matrix.runner_label }}
steps:
- name: Test Workflows
uses: comfy-org/comfy-action@main
uses: comfy-org/comfy-action@2239a587d36772deab9605f1543abf0dc8aa8f92 # main
with:
os: ${{ matrix.os }}
python_version: ${{ matrix.python_version }}
@ -90,7 +90,7 @@ jobs:
runs-on: ${{ matrix.runner_label }}
steps:
- name: Test Workflows
uses: comfy-org/comfy-action@main
uses: comfy-org/comfy-action@2239a587d36772deab9605f1543abf0dc8aa8f92 # main
with:
os: ${{ matrix.os }}
python_version: ${{ matrix.python_version }}

View File

@ -43,7 +43,7 @@ jobs:
- name: Create Pull Request
if: steps.git-check.outputs.changes == 'true'
uses: peter-evans/create-pull-request@v5
uses: peter-evans/create-pull-request@4e1beaa7521e8b457b572c090b25bd3db56bf1c5 # v5
with:
commit-message: 'chore: update API models from OpenAPI spec'
title: 'Update API models from api.comfy.org'

View File

@ -45,7 +45,7 @@ jobs:
- name: Create Pull Request
id: create-pr
uses: peter-evans/create-pull-request@v7
uses: peter-evans/create-pull-request@22a9089034f40e5a961c8808d113e2c98fb63676 # v7
with:
token: ${{ secrets.CI_CONTAINER_PAT }}
branch: automation/comfyui-${{ steps.version.outputs.version }}

View File

@ -52,8 +52,11 @@ jobs:
run: |
git config --local user.name "github-actions"
git config --local user.email "github-actions@github.com"
git fetch origin ${{ github.head_ref }}
git checkout -B ${{ github.head_ref }} origin/${{ github.head_ref }}
git fetch origin ${HEAD_REF}
git checkout -B ${HEAD_REF} origin/${HEAD_REF}
git add comfyui_version.py
git diff --quiet && git diff --staged --quiet || git commit -m "chore: Update comfyui_version.py to match pyproject.toml"
git push origin HEAD:${{ github.head_ref }}
git push origin HEAD:${HEAD_REF}
env:
HEAD_REF: ${{ github.head_ref }}

View File

@ -85,7 +85,7 @@ jobs:
ls
- name: Upload binaries to release
uses: svenstaro/upload-release-action@v2
uses: svenstaro/upload-release-action@29e53e917877a24fad85510ded594ab3c9ca12de # v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: ComfyUI_windows_portable_nvidia_or_cpu_nightly_pytorch.7z

View File

@ -97,7 +97,7 @@ jobs:
ls
- name: Upload binaries to release
uses: svenstaro/upload-release-action@v2
uses: svenstaro/upload-release-action@29e53e917877a24fad85510ded594ab3c9ca12de # v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: new_ComfyUI_windows_portable_nvidia_cu${{ inputs.cu }}_or_cpu.7z