Skip to content

Commit afd7976

Browse files
Suppress zizmor false-positive
Suppress false positive for trusted publishing usage for MyGet.
1 parent 596c0f2 commit afd7976

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

.github/workflows/build.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,8 @@ jobs:
239239
API_KEY: ${{ secrets.MYGET_TOKEN }}
240240
PACKAGE_VERSION: ${{ needs.build.outputs.package-version }}
241241
SOURCE: "https://www.myget.org/F/domaindrivendev/api/v3/index.json"
242-
run: dotnet nuget push "*.nupkg" --api-key "${API_KEY}" --skip-duplicate --source "${SOURCE}" && echo "::notice title=myget.org::Published version ${PACKAGE_VERSION} to MyGet."
242+
run: | # zizmor: ignore[use-trusted-publishing] MyGet does not support trusted publishing
243+
dotnet nuget push "*.nupkg" --api-key "${API_KEY}" --skip-duplicate --source "${SOURCE}" && echo "::notice title=myget.org::Published version ${PACKAGE_VERSION} to MyGet."
243244
244245
publish-nuget:
245246
needs: [ build, validate-packages ]
@@ -269,4 +270,5 @@ jobs:
269270
API_KEY: ${{ secrets.NUGET_TOKEN }}
270271
PACKAGE_VERSION: ${{ needs.build.outputs.package-version }}
271272
SOURCE: https://api.nuget.org/v3/index.json
272-
run: dotnet nuget push "*.nupkg" --api-key "${API_KEY}" --skip-duplicate --source "${SOURCE}" && echo "::notice title=nuget.org::Published version ${PACKAGE_VERSION} to NuGet.org."
273+
run: |
274+
dotnet nuget push "*.nupkg" --api-key "${API_KEY}" --skip-duplicate --source "${SOURCE}" && echo "::notice title=nuget.org::Published version ${PACKAGE_VERSION} to NuGet.org."

0 commit comments

Comments
 (0)