Skip to content

Commit a53c059

Browse files
authored
remove pull_request_target trigger (#298)
1 parent e3ae5f8 commit a53c059

File tree

1 file changed

+6
-11
lines changed

1 file changed

+6
-11
lines changed

.github/workflows/privileged-run.yml

Lines changed: 6 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,6 @@ name: Sample Run and Dependabot Auto-merge
77
on:
88
push:
99
branches: [ master ]
10-
pull_request_target:
11-
branches: [ master ]
12-
workflow_dispatch:
1310

1411
permissions:
1512
id-token: write
@@ -35,8 +32,6 @@ jobs:
3532
steps:
3633
- name: Checkout
3734
uses: actions/checkout@v4
38-
with:
39-
ref: ${{ github.event.pull_request.head.sha }}
4035

4136
- name: Configure AWS Credentials
4237
uses: aws-actions/configure-aws-credentials@v4
@@ -102,12 +97,12 @@ jobs:
10297
alert-lookup: true
10398
github-token: "${{ secrets.GITHUB_TOKEN }}"
10499

105-
- name: Approve PR
106-
if: steps.metadata.outputs.update-type != 'version-update:semver-major'
107-
run: gh pr review --approve "$PR_URL"
108-
env:
109-
PR_URL: ${{github.event.pull_request.html_url}}
110-
GH_TOKEN: ${{secrets.GITHUB_TOKEN}}
100+
# - name: Approve PR
101+
# if: steps.metadata.outputs.update-type != 'version-update:semver-major'
102+
# run: gh pr review --approve "$PR_URL"
103+
# env:
104+
# PR_URL: ${{github.event.pull_request.html_url}}
105+
# GH_TOKEN: ${{secrets.GITHUB_TOKEN}}
111106

112107
# - name: Enable auto-merge for Dependabot PRs
113108
# if: steps.metadata.outputs.update-type != 'version-update:semver-major'

0 commit comments

Comments
 (0)