Skip to content

Modernize CI/publish workflows#563

Merged
tamalsaha merged 2 commits into
masterfrom
fix-workflows
May 14, 2026
Merged

Modernize CI/publish workflows#563
tamalsaha merged 2 commits into
masterfrom
fix-workflows

Conversation

@tamalsaha
Copy link
Copy Markdown
Member

Summary

  • ci.yml: move checkout before setup-go so actions/setup-go@v5's built-in module caching can find go.sum; add permissions: contents: read.
  • publish.yml: install awscli via apt instead of pip3 (PEP 668 makes system pip installs error on ubuntu-24.04); drop the archived github/hub install step since gh is pre-installed on the runner; replace the non-standard aws configure set endpoint_url with AWS_ENDPOINT_URL env on the Publish step (supported in AWS CLI v2.13+); lift GITHUB_USER: 1gtm to job-level env; add permissions: contents: read.
  • hack/scripts/update-release-tracker.sh: switch hub api to gh api (same flags, same GITHUB_TOKEN env pickup).

Test plan

  • CI workflow runs green on this PR.
  • After merge, verify the next Publish run on master:
    • apt-get install awscli succeeds.
    • aws s3 sync reaches the R2 bucket via AWS_ENDPOINT_URL.
    • gh api posts the /tagged comment to the release tracker.

- ci.yml: checkout before setup-go so module caching works; add
  read-only permissions block.
- publish.yml: install awscli via apt (avoids PEP 668 breakage on
  ubuntu-24.04), drop deprecated hub CLI install, lift GITHUB_USER
  to job env, switch R2 endpoint to AWS_ENDPOINT_URL env var, add
  read-only permissions block.
- update-release-tracker.sh: replace archived `hub api` with
  pre-installed `gh api`.

Signed-off-by: Tamal Saha <tamal@appscode.com>
kodiakhq[bot]
kodiakhq Bot previously approved these changes May 14, 2026
Org policy requires actions to be pinned to a full-length commit SHA.

- actions/checkout@v4   -> 34e1148 (v4.3.1)
- actions/setup-go@v5   -> 40f1582 (v5.6.0)

Signed-off-by: Tamal Saha <tamal@appscode.com>
@tamalsaha tamalsaha merged commit 371121f into master May 14, 2026
4 checks passed
@tamalsaha tamalsaha deleted the fix-workflows branch May 14, 2026 15:01
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.

1 participant