Skip to content

Introduce a script for doing GHA pin bumps #13251

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

alex
Copy link
Member

@alex alex commented Aug 6, 2025

No description provided.

@alex alex requested a review from Copilot August 6, 2025 00:26
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR introduces a Python script to automate dependency version bumps in GitHub Actions workflows, replacing repetitive shell script logic with a centralized solution. The script handles checking for updates from remote repositories and updating configuration files with new versions.

  • Replaces complex bash logic for checking and updating dependency versions with a Python script
  • Consolidates version bump logic for multiple dependencies (x509-limbo, wycheproof, BoringSSL, OpenSSL, AWS-LC)
  • Updates workflow conditions to use standardized output variables from the new script

Reviewed Changes

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

File Description
.github/workflows/x509-limbo-version-bump.yml Replaces manual SHA checking and sed commands with calls to the new bump_dependency.py script for x509-limbo and wycheproof
.github/workflows/ci.yml Shows example updates to AWS-LC and OpenSSL versions that would be handled by the new automation
.github/workflows/boring-open-awslc-bump.yml Replaces complex version checking logic for BoringSSL, OpenSSL, and AWS-LC with standardized script calls

- uses: tibdex/github-app-token@3beb63f4bd073e61482598c45c71c1019b59b73a # v2.1.0
id: generate-token
with:
app_id: ${{ secrets.BORINGBOT_APP_ID }}
private_key: ${{ secrets.BORINGBOT_PRIVATE_KEY }}
if: steps.check-sha-x509-limbo.outputs.COMMIT_SHA || steps.check-sha-wycheproof.outputs.COMMIT_SHA
if: steps.bump-x509-limbo.outputs.HAS_UPDATES == 'true' || steps.bump-wycheproof.outputs.HAS_UPDATES == 'true'
Copy link
Preview

Copilot AI Aug 6, 2025

Choose a reason for hiding this comment

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

The condition should be consistent with line 59. Either both should check for 'true' string or both should use boolean evaluation without explicit string comparison.

Copilot uses AI. Check for mistakes.

- uses: tibdex/github-app-token@3beb63f4bd073e61482598c45c71c1019b59b73a # v2.1.0
id: generate-token
with:
app_id: ${{ secrets.BORINGBOT_APP_ID }}
private_key: ${{ secrets.BORINGBOT_PRIVATE_KEY }}
if: steps.check-sha-boring.outputs.COMMIT_SHA || steps.check-sha-openssl.outputs.COMMIT_SHA || steps.check-tag-aws-lc.outputs.NEW_TAG
if: steps.bump-boringssl.outputs.HAS_UPDATES == 'true' || steps.bump-openssl.outputs.HAS_UPDATES == 'true' || steps.bump-awslc.outputs.HAS_UPDATES == 'true'
Copy link
Preview

Copilot AI Aug 6, 2025

Choose a reason for hiding this comment

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

The condition should be consistent with line 74. Either both should check for 'true' string or both should use boolean evaluation without explicit string comparison.

Copilot uses AI. Check for mistakes.

@alex alex force-pushed the bump-refactoring branch from 8e5ff14 to 13d1e06 Compare August 6, 2025 00:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

1 participant