Skip to content

Commit 0b98a25

Browse files
🩹 [Patch]: Add GitHub context to Action-Test and log permissions access
1 parent 4463abf commit 0b98a25

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

.github/workflows/TestWorkflow.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,8 @@ jobs:
140140
- name: Action-Test
141141
uses: ./
142142
id: test
143+
env:
144+
GITHUB_CONTEXT: ${{ toJson(github) }}
143145
with:
144146
Name: Action-Test
145147
Debug: true
@@ -231,6 +233,10 @@ jobs:
231233
}
232234
}
233235
236+
LogGroup 'Permissions' {
237+
Invoke-GitHubAPI -APIEndpoint "/repos/$env:GITHUB_REPOSITORY/actions/permissions/access" | Select-Object -ExpandProperty Response
238+
}
239+
234240
- name: Run-test
235241
shell: pwsh
236242
env:

0 commit comments

Comments
 (0)