Skip to content

Commit 520ea31

Browse files
committed
fix: merge main
2 parents 0020580 + 076108f commit 520ea31

File tree

2 files changed

+12
-4
lines changed

2 files changed

+12
-4
lines changed

.github/workflows/certora-stata.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,7 @@ on:
1313
jobs:
1414
verify:
1515
runs-on: ubuntu-latest
16-
if:
17-
github.event.pull_request.head.repo.full_name == github.repository || (github.event_name == 'push' &&
18-
github.ref == format('refs/heads/{0}', github.event.repository.default_branch))
16+
1917
steps:
2018
- uses: actions/checkout@v2
2119
with:

.github/workflows/comment.yml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,13 @@ on:
1111
types:
1212
- completed
1313

14+
permissions:
15+
actions: read
16+
issues: write
17+
checks: read
18+
statuses: read
19+
pull-requests: write
20+
1421
jobs:
1522
comment:
1623
name: Comment Bot
@@ -21,7 +28,7 @@ jobs:
2128
name: content
2229
path: /tmp/content
2330
run-id: ${{ github.event.workflow_run.id }}
24-
github-token: ${{ secrets.READ_ONLY_PAT }}
31+
github-token: ${{ secrets.READ_ONLY_PAT || github.token }}
2532

2633
- name: Read pr number
2734
id: get_pr_number
@@ -40,6 +47,7 @@ jobs:
4047
with:
4148
issue-number: ${{ steps.get_pr_number.outputs.pr_number }}
4249
comment-author: "github-actions[bot]"
50+
token: ${{ secrets.READ_ONLY_PAT || github.token }}
4351

4452
- name: Create or update pr comment
4553
uses: peter-evans/create-or-update-comment@v4
@@ -49,10 +57,12 @@ jobs:
4957
issue-number: ${{ steps.get_pr_number.outputs.pr_number }}
5058
body-file: /tmp/all.txt
5159
edit-mode: replace
60+
token: ${{ secrets.READ_ONLY_PAT || github.token }}
5261

5362
- name: Create or update commit comment
5463
uses: peter-evans/commit-comment@v3
5564
if: ${{ steps.get_pr_number.outputs.pr_number == null }}
5665
with:
5766
sha: ${{ github.event.workflow_run.head_sha }}
5867
body-file: /tmp/all.txt
68+
token: ${{ secrets.READ_ONLY_PAT || github.token }}

0 commit comments

Comments
 (0)