Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion Actions/RunPipeline/RunPipeline.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,13 @@ try {
}
}
else {
$trustedNuGetFeed | Add-Member -MemberType NoteProperty -Name 'Token' -Value ''
$tokenValue = ''
if ($trustedNuGetFeed.url -like 'https://nuget.pkg.github.com/*') {
# GitHub Packages might be public, but they still require a token with read:packages permissions (not necessarily to the specific feed)
# instead of using a blank token, we use the GitHub token (which has read packages permissions) provided to the action
$tokenValue = $token
}
$trustedNuGetFeed | Add-Member -MemberType NoteProperty -Name 'Token' -Value $tokenValue
}
if ($trustedNuGetFeed.PSObject.Properties.Name -eq 'AuthTokenSecret' -and $trustedNuGetFeed.AuthTokenSecret) {
$authTokenSecret = $trustedNuGetFeed.AuthTokenSecret
Expand Down
1 change: 1 addition & 0 deletions RELEASENOTES.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
### Issues

- Issue 2070 Support public GitHub Packages feeds without requiring a Personal Access Token (PAT)
- Issue 2004 PublishToAppSource workflow publishes multi-app repos in alphabetical order instead of dependency order
- Issue 2045 DateTime parsing fails on non-US locale runners in WorkflowPostProcess.ps1
- Issue 2055 When using versioningStrategy 3+16, you get an error when building
Expand Down
1 change: 1 addition & 0 deletions Templates/AppSource App/.github/workflows/CICD.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ permissions:
id-token: write
pages: read
security-events: write
packages: read

env:
workflowDepth: 1
Expand Down
1 change: 1 addition & 0 deletions Templates/AppSource App/.github/workflows/Current.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ permissions:
actions: read
contents: read
id-token: write
packages: read

defaults:
run:
Expand Down
1 change: 1 addition & 0 deletions Templates/AppSource App/.github/workflows/NextMajor.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ permissions:
actions: read
contents: read
id-token: write
packages: read

defaults:
run:
Expand Down
1 change: 1 addition & 0 deletions Templates/AppSource App/.github/workflows/NextMinor.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ permissions:
actions: read
contents: read
id-token: write
packages: read

defaults:
run:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ permissions:
id-token: write
pull-requests: read
security-events: write
packages: read

env:
workflowDepth: 1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ permissions:
actions: read
contents: read
id-token: write
packages: read

env:
ALGoOrgSettings: ${{ vars.ALGoOrgSettings }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ permissions:
id-token: write
pages: read
security-events: write
packages: read

env:
workflowDepth: 1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ permissions:
actions: read
contents: read
id-token: write
packages: read

defaults:
run:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ permissions:
actions: read
contents: read
id-token: write
packages: read

defaults:
run:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ permissions:
actions: read
contents: read
id-token: write
packages: read

defaults:
run:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ permissions:
id-token: write
pull-requests: read
security-events: write
packages: read

env:
workflowDepth: 1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ permissions:
actions: read
contents: read
id-token: write
packages: read

env:
ALGoOrgSettings: ${{ vars.ALGoOrgSettings }}
Expand Down
Loading