Skip to content

Commit f3ef962

Browse files
committed
.github: fixup 12
1 parent e5a0ee2 commit f3ef962

File tree

2 files changed

+9
-16
lines changed

2 files changed

+9
-16
lines changed

.github/workflows/AsteriskPRChanged.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,13 @@ env:
4444
jobs:
4545
PRChanged2:
4646
name: "run-check"
47+
permissions:
48+
actions: read
49+
checks: read
50+
contents: read
51+
issues: read
52+
pull-requests: read
53+
statuses: read
4754
uses: ./.github/workflows/AsteriskPRChanged2.yml
4855

4956
Cleanup:

.github/workflows/AsteriskPRChanged2.yml

Lines changed: 2 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -9,22 +9,6 @@ on:
99
required: false
1010
default: '{ "owner": "asterisk", "repo": "asterisk-ci-actions", "branch": "main" }'
1111

12-
permissions:
13-
actions: read
14-
# attestations: read|write|none
15-
checks: read
16-
contents: read
17-
# deployments: read|write|none
18-
# id-token: write|none
19-
issues: read
20-
# discussions: read|write|none
21-
# packages: read|write|none
22-
# pages: read|write|none
23-
pull-requests: read
24-
# repository-projects: read|write|none
25-
# security-events: read|write|none
26-
statuses: read
27-
2812
env:
2913
REPO: ${{ github.repository }}
3014
REPO_DIR: ${{ github.workspace }}/${{ github.event.repository.name }}
@@ -46,6 +30,8 @@ jobs:
4630
steps:
4731
- id: setup
4832
run: |
33+
gh pr comment --repo ${REPO} ${PR_NUMBER} --body "This is a comment from ${WORKFLOW_NAME}" || \
34+
echo "Add comment failed. Expected"
4935
mkdir cacheit
5036
ls -al > cacheit/dirlist.txt
5137
mkdir output

0 commit comments

Comments
 (0)