Skip to content

Commit 82bcaf7

Browse files
Merge pull request #26 from kevinbackhouse/smoketest
Add more permissions
2 parents 29dbed4 + 22e6d55 commit 82bcaf7

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

.github/workflows/smoketest.yaml

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,14 @@ on:
44
issue_comment:
55
types: [created] # Add "smoke test" as a PR comment to trigger this workflow.
66

7+
# Permissions needed for reacting and adding comments for IssueOps commands
8+
# See: https://github.com/github/branch-deploy/blob/48285b12b35e47e2dde0c27d2abb33daa846d98b/README.md?plain=1#L189-L197
79
permissions:
8-
contents: read
9-
pull-requests: write # For adding a reaction to the comment
10+
pull-requests: write # Required for commenting on PRs
11+
deployments: write # Required for updating deployment statuses
12+
contents: write # Required for reading/writing the lock file
13+
checks: read # Required for checking if the CI checks have passed in order to deploy the PR
14+
statuses: read # Required for checking if all commit statuses are "success" in order to deploy the PR
1015

1116
jobs:
1217
Linux:
@@ -19,14 +24,17 @@ jobs:
1924
trigger: "smoke test"
2025
reaction: "eyes"
2126
stable_branch: "main"
27+
update_branch: "disable"
2228

2329
- name: Setup Python
2430
uses: actions/setup-python@v5
2531
with:
2632
python-version: '3.11'
2733

2834
- name: Checkout
29-
uses: actions/checkout@v3
35+
uses: actions/checkout@v5
36+
with:
37+
ref: ${{ github.head_ref }}
3038

3139
- name: Setup Python venv
3240
run: |

0 commit comments

Comments
 (0)