Skip to content

ci: start codebuild jobs from github actions#5383

Merged
lrstewart merged 3 commits intoaws:mainfrom
lrstewart:codebuild2
Jul 10, 2025
Merged

ci: start codebuild jobs from github actions#5383
lrstewart merged 3 commits intoaws:mainfrom
lrstewart:codebuild2

Conversation

@lrstewart
Copy link
Copy Markdown
Contributor

@lrstewart lrstewart commented Jul 1, 2025

Release Summary:

Description of changes:

Automatically call start_codebuild.sh to trigger our codebuild jobs. This will only run for members of the aws organization because we have the "Approval for running fork pull request workflows from contributors" set to "Require approval for all external contributors". The status of launched jobs will be communicated back automatically via the Github connector.

This might make adding / removing codebuild jobs a little tricky though: pull_request_target runs with the upstream code, not the new code in the PR that triggers it. That means that if you add a new codebuild job to one of the lists, that codebuild job will not run until AFTER the PR that adds it is merged into main.

Testing:

The new jobs do not run in this PR (see above-- they won't run until this PR is merged). So to test the new workflow, I pushed this code to an aws/s2n-tls branch called "lrstewart2", then I opened two PRs against it from my fork. Those PRs ran the Codebuild jobs.

Positive test: #5390
Negative test: #5389

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@github-actions github-actions bot added the s2n-core team label Jul 1, 2025
@lrstewart lrstewart requested a review from maddeleine July 9, 2025 17:19
@lrstewart lrstewart marked this pull request as ready for review July 9, 2025 17:20
@lrstewart lrstewart requested a review from dougch as a code owner July 9, 2025 17:20

if [ "$#" -lt "1" ]; then
usage
# Return instead of exit so we can `source` this script
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

It doesn't look like we used this anywhere?

Copy link
Copy Markdown
Contributor Author

@lrstewart lrstewart Jul 9, 2025

Choose a reason for hiding this comment

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

yup, which is why I'm removing it. It used to be part of the linting that ensured the webhooks matched the script (link), but this PR also removes that lint.

@lrstewart lrstewart enabled auto-merge (squash) July 9, 2025 21:55
@lrstewart lrstewart merged commit 1c7f0b5 into aws:main Jul 10, 2025
49 checks passed
@lrstewart lrstewart deleted the codebuild2 branch July 10, 2025 07:16
@dougch dougch mentioned this pull request Mar 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants