Skip to content

Update build workflow to support GitHub App #7350

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Apr 30, 2025

Conversation

sjonpaulbrown
Copy link
Collaborator

@sjonpaulbrown sjonpaulbrown commented Apr 25, 2025

Summary

This PR updates the image_builds.yml workflow to use a GitHub App for authentication instead of a personal access token.

Changes

  • Added actions/create-github-app-token@v2 to generate a GitHub App token.
  • Replaced secrets.SECURE_BUILDS_TOKEN with ${{ steps.app-token.outputs.token }}.

Motivation

Improves security and flexibility by using short-lived tokens and granular permissions.

Example Runs

@codecov-commenter
Copy link

codecov-commenter commented Apr 25, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 41.22%. Comparing base (e8b1b74) to head (1986cb1).

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #7350   +/-   ##
=======================================
  Coverage   41.22%   41.22%           
=======================================
  Files        2199     2199           
  Lines      192119   192119           
=======================================
+ Hits        79193    79194    +1     
  Misses     106325   106325           
+ Partials     6601     6600    -1     
Flag Coverage Δ
unittests 41.22% <ø> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@sjonpaulbrown sjonpaulbrown force-pushed the sre/jp/309/update-build-workflow branch from 84a048f to 7284f88 Compare April 29, 2025 21:50
@sjonpaulbrown sjonpaulbrown marked this pull request as ready for review April 29, 2025 21:59
@sjonpaulbrown sjonpaulbrown requested a review from a team as a code owner April 29, 2025 21:59
@sjonpaulbrown sjonpaulbrown added this pull request to the merge queue Apr 30, 2025
Merged via the queue into master with commit 9097044 Apr 30, 2025
57 checks passed
@sjonpaulbrown sjonpaulbrown deleted the sre/jp/309/update-build-workflow branch April 30, 2025 14:31
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.

5 participants