Skip to content

Commit 3087308

Browse files
authored
Add required github deployment environment for publishing (#3544)
Pass environment config to the publish action to harden our releases. Upon approval I will also update the publish settings on pub to require this environment. (see https://dart.dev/tools/pub/automated-publishing#hardening-security-with-github-deployment-environments)
1 parent dba681f commit 3087308

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

.github/workflows/publish.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,6 @@ jobs:
1414
if: ${{ github.repository_owner == 'dart-lang' }}
1515
uses: dart-lang/ecosystem/.github/workflows/publish.yaml@main
1616
with:
17+
# Protected github deployment environment, requires approval to publish.
18+
environment: pub.dev
1719
sdk: dev

0 commit comments

Comments
 (0)