Skip to content

Commit

Permalink
dump token permissions
Browse files Browse the repository at this point in the history
  • Loading branch information
freddydk committed Dec 20, 2023
1 parent 16f3e6d commit 8dfe5c9
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Actions/Deliver/Deliver.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -221,6 +221,11 @@ try {
"token" = $token
}

Write-Host "------------------"
(Invoke-WebRequest -UseBasicParsing -uri 'https://api.github.com' -Headers @{ "Authorization" = "token $($token)" }).Headers | Out-Host
Write-Host "------------------"
(Invoke-WebRequest -UseBasicParsing -uri 'https://api.github.com' -Headers @{ "Authorization" = "token $($env:GITHUB_TOKEN)" }).Headers | Out-Host

'Apps' | ForEach-Object {
$folder = @(Get-ChildItem -Path (Join-Path $artifactsFolder "$project-$refname-$($_)-*.*.*.*") | Where-Object { $_.PSIsContainer })
if ($folder.Count -gt 1) {
Expand Down
4 changes: 4 additions & 0 deletions Templates/Per Tenant Extension/.github/workflows/CICD.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -290,6 +290,10 @@ jobs:
gitHubSecrets: ${{ toJson(secrets) }}
getSecrets: '${{ matrix.deliveryTarget }}Context'

- name: dump
run: |
(Invoke-WebRequest -UseBasicParsing -uri 'https://api.github.com' -Headers @{ "Authorization" = "token $($env:GITHUB_TOKEN)" }).Headers | Out-Host
- name: Deliver
uses: microsoft/AL-Go-Actions/Deliver@main
env:
Expand Down

0 comments on commit 8dfe5c9

Please sign in to comment.