diff --git a/.github/workflows/publish-af.yml b/.github/workflows/publish-af.yml index b1177c5a..daf82e7b 100644 --- a/.github/workflows/publish-af.yml +++ b/.github/workflows/publish-af.yml @@ -7,6 +7,9 @@ on: jobs: publish: + permissions: + id-token: write uses: dart-lang/setup-dart/.github/workflows/publish.yml@v1 with: + environment: ${{ github.event.pull_request.head.repo.fork && 'external' || 'internal' }} working-directory: auth0_flutter diff --git a/.github/workflows/publish-afpi.yml b/.github/workflows/publish-afpi.yml index e357ac8f..b5fde6e2 100644 --- a/.github/workflows/publish-afpi.yml +++ b/.github/workflows/publish-afpi.yml @@ -7,6 +7,9 @@ on: jobs: publish: + permissions: + id-token: write uses: dart-lang/setup-dart/.github/workflows/publish.yml@v1 with: + environment: ${{ github.event.pull_request.head.repo.fork && 'external' || 'internal' }} working-directory: auth0_flutter_platform_interface