Skip to content

Commit 0be17c3

Browse files
Switch to pull_request_target trigger, unset AWS profile name
1 parent e6036c2 commit 0be17c3

2 files changed

Lines changed: 8 additions & 1 deletion

File tree

.github/workflows/test-deployer.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@ name: Test Deployer
1717
on:
1818
workflow_call:
1919
inputs:
20+
ref:
21+
required: false
22+
type: string
2023
design:
2124
required: true
2225
type: string
@@ -56,6 +59,8 @@ jobs:
5659
steps:
5760
- name: Checkout repository
5861
uses: actions/checkout@v4
62+
with:
63+
ref: ${{ inputs.ref }}
5964

6065
- name: Update package lists
6166
run: sudo apt update
@@ -149,6 +154,7 @@ jobs:
149154
working-directory: ../themis/tofu_aws
150155
run: |
151156
cat > github_actions.auto.tfvars << 'EOF'
157+
profile = ""
152158
owner = "github"
153159
os_type = "${{ inputs.os-type }}"
154160
os_version = "${{ inputs.os-version }}"

.github/workflows/test-on-pull-request.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: Test Deployer on Pull Request
22

33
on:
4-
pull_request:
4+
pull_request_target:
55
branches:
66
- main
77

@@ -13,6 +13,7 @@ jobs:
1313
fail-fast: false
1414
uses: ./.github/workflows/test-deployer.yml
1515
with:
16+
ref: ${{ github.event.pull_request.head.sha }}
1617
design: ${{ matrix.design }}
1718
os-type: rocky
1819
os-version: "9"

0 commit comments

Comments
 (0)