Skip to content

CI: Fix publish workflow (retired artifact actions) - #9

Merged
bramwelt merged 2 commits into
aws-lambda-v2.11from
ci/fix-publish-workflow
Aug 6, 2026
Merged

CI: Fix publish workflow (retired artifact actions)#9
bramwelt merged 2 commits into
aws-lambda-v2.11from
ci/fix-publish-workflow

Conversation

@bramwelt

@bramwelt bramwelt commented Aug 6, 2026

Copy link
Copy Markdown

What does this PR do?

Bumps actions/upload-artifact and actions/download-artifact off the
retired v2/v3 majors in publish.yml and build.yaml, gates the
trigger-deploy job to only fire on aws-lambda-v2.11, and makes the
lfx-gateway deploy-dispatch curl fail loudly instead of silently
swallowing an auth error.

Motivation

linuxfoundation/lfx-gateway#114 needs the awslambda middleware fix
in #8 to actually reach prod. lfx-gateway builds
FROM ghcr.io/linuxfoundation/traefik:latest, and that image comes
from publish.yml on push to aws-lambda-v2.11. actions/upload-artifact@v2
is now hard-failed by GitHub before any step runs (confirmed live on
#8's build-webui job: This request has been automatically failed because it uses a deprecated version of 'actions/upload-artifact: v2'),
so a merge to this branch currently cannot produce a new :latest.

More

  • Added/updated tests (CI-only change, N/A)
  • Added/updated documentation (N/A)

Additional Notes

Push-triggered workflows only evaluate against branches already known
from a prior push, so this can't be safely dry-run on a scratch
branch — merging this PR into aws-lambda-v2.11 is itself the test.
That merge will also fire the real trigger-deploy dispatch to
lfx-gateway, so please confirm before merging rather than treating
this as routine.

Separately (not fixed here, flagging for awareness):

  • lfx-gateway's PERSONAL_ACCESS_TOKEN secret was last rotated
    2024-10-24 and may be expired — if trigger-deploy 401s after this
    merges, that's the next thing to check, not a code issue.
  • lfx-gateway's own merge.yaml (which receives the dispatch) last
    ran 2025-07-25, with its last 3 runs failure/cancelled — worth a
    ping to @linuxfoundation/core-services regardless of this PR.

upload/download-artifact v2/v3 are retired and now hard-fail before
any step runs (confirmed on PR #8), so publish.yml has not produced
a new ghcr.io/linuxfoundation/traefik:latest since May 2024. Bump to
current majors, gate the lfx-gateway deploy dispatch to the
aws-lambda-v2.11 ref so test pushes can't trigger prod deploys, and
make the dispatch curl fail loudly instead of silently swallowing a
401. Needed so the awslambda query-param fix (#8) can actually ship.

Signed-off-by: Trevor Bramwell <tbramwell@linuxfoundation.org>
Push-triggered workflows only evaluate against branches already
known to a prior push; a throwaway branch can't self-register by
adding its own name to on.push.branches in the same commit. Remove
it, verification has to happen against aws-lambda-v2.11 itself.

Signed-off-by: Trevor Bramwell <tbramwell@linuxfoundation.org>
Copilot AI balanced review requested due to automatic review settings August 6, 2026 20:43
@coderabbitai

coderabbitai Bot commented Aug 6, 2026

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 3440f007-81a9-4603-8fe6-bd40c4afa25e

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review

Comment @coderabbitai help to get the list of available commands.

@bramwelt
bramwelt merged commit 9511230 into aws-lambda-v2.11 Aug 6, 2026
2 of 3 checks passed
@bramwelt
bramwelt deleted the ci/fix-publish-workflow branch August 6, 2026 20:45

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

Note

Copilot was unable to run its full agentic suite in this review.

Updates GitHub Actions workflows to support manual triggers, tighten deployment triggering, and modernize action usage.

Changes:

  • Add workflow_dispatch to allow manual workflow runs.
  • Update GitHub Actions uses: versions across publish/build workflows.
  • Restrict deploy trigger job to a specific branch and harden the deploy webhook curl invocation.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
.github/workflows/publish.yml Adds manual trigger, updates action versions, tightens deploy conditions, and improves curl failure handling.
.github/workflows/build.yaml Updates artifact upload/download action versions used during build.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants