Skip to content
Merged
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
4 changes: 4 additions & 0 deletions .github/workflows/saft-mozambique-ci-cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-net

name: SAF-T.Mozambique CI/CD
permissions:
contents: read

on:
push:
Expand Down Expand Up @@ -56,5 +58,7 @@ jobs:
dotnet pack --configuration Release -p:PackageVersion=${PACKAGE_VERSION} --no-build -o ./nupkg

- name: Publicar no NuGet
permissions:
packages: write
Comment on lines +61 to +62
Copy link

Copilot AI May 22, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The permissions block is defined under a step, but GitHub Actions only supports permissions at the workflow or job level. Move this packages: write override to the job definition for the NuGet publishing job.

Suggested change
permissions:
packages: write

Copilot uses AI. Check for mistakes.
run: dotnet nuget push ./nupkg/*.nupkg --source https://api.nuget.org/v3/index.json --api-key ${{ secrets.NUGET_API_PUBLISH_KEY }}

Loading