Skip to content

Add update-helm job to production workflow#59

Merged
bschwedler merged 6 commits into
mainfrom
invoke-helm-release
Jul 9, 2026
Merged

Add update-helm job to production workflow#59
bschwedler merged 6 commits into
mainfrom
invoke-helm-release

Conversation

@bschwedler

@bschwedler bschwedler commented Apr 7, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Add update-helm job that dispatches product-release.yml in rstudio/helm after successful production builds
  • Strips pre-release/build metadata from app version before dispatching
  • Reads Python version from bakery.yaml and passes it to the helm dispatch
  • Uses the posit-connect-projects GitHub App for the dispatch token (POSIT_CONNECT_PROJECTS_APP_ID / POSIT_CONNECT_PROJECTS_PEM)

Dependencies

Comment thread .github/workflows/production.yml Fixed
Comment thread .github/workflows/production.yml Fixed
Comment thread .github/workflows/production.yml Fixed
Comment thread .github/workflows/production.yml Fixed
Comment thread .github/workflows/production.yml Fixed
@bschwedler
bschwedler marked this pull request as ready for review June 25, 2026 14:22
@bschwedler
bschwedler requested review from a team and ianpittwood as code owners June 25, 2026 14:22
Comment thread .github/workflows/production.yml Fixed
Comment thread .github/workflows/production.yml Fixed
@bschwedler
bschwedler force-pushed the invoke-helm-release branch from 25a4add to ab227b7 Compare June 25, 2026 19:00
After a successful build of release versions, dispatch the
product-release.yml workflow on rstudio/helm via a GitHub App token
sourced from the posit-connect-projects App (POSIT_CONNECT_PROJECTS_APP_ID / _PEM) so the helm chart's connect image tag is
updated to the new image version automatically.
Add an 'Extract Python version' step to the update-helm job that reads
the Python version from the rendered Containerfile for the current
edition. The version is then passed as python_version to the helm
product-release workflow, so the chart's interpreter path stays in sync
with the image that was actually built.
Pin actions to commit SHAs, restrict permissions to contents:read,
and disable credential persistence after checkout.
Narrows the token generated for the helm dispatch to the minimum
permission needed, silencing the zizmor dangerous-app-token-scoping
finding.
@bschwedler
bschwedler force-pushed the invoke-helm-release branch from ab227b7 to f291ed5 Compare July 8, 2026 20:34
@bschwedler
bschwedler merged commit 7cd6a88 into main Jul 9, 2026
198 of 202 checks passed
@bschwedler
bschwedler deleted the invoke-helm-release branch July 9, 2026 13:32
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