Skip to content

test change

test change #6

Workflow file for this run

---
name: Codebuild
on:
push:
branches: [main]
# This event can use aws credentials, but runs against upstream code instead of PR code.
# https://docs.github.com/en/actions/reference/events-that-trigger-workflows#pull_request_target
# https://securitylab.github.com/resources/github-actions-preventing-pwn-requests/
pull_request_target:
branches: [main, lrstewart2]
merge_group:
types: [checks_requested]
branches: [main]
jobs:
start:
runs-on: ubuntu-latest
permissions:
id-token: write
contents: read
env:
source_pr: pr/${{ github.event.pull_request.number }}
source_sha: ${{ github.sha }}
pr_author: ${{ github.event.pull_request.user.login }}
steps:
- uses: actions/checkout@v4
- name: Get credentials
uses: aws-actions/[email protected]
with:
role-to-assume: arn:aws:iam::024603541914:role/GitHubOIDCRole
role-session-name: ${{ github.run_id }}
aws-region: us-west-2
- name: Debug
run: |
echo ${{ github.event.pull_request.author_association }}
- name: Start Codebuild for SHA
# This version runs when PRs are added to the merge queue or merged to main
if: github.event_name != 'pull_request_target'
run: ./codebuild/bin/start_codebuild.sh $source_sha
- name: Start Codebuild for PR
# This version runs when PRs are created or updated
if: github.event.pull_request.author_association == 'MEMBER'
run: ./codebuild/bin/start_codebuild.sh $source_pr