Skip to content

Commit e3a682f

Browse files
dominikgbenmccann
andauthored
do not persist git credentials and add release environment (#1263)
* do not persist git credentials and add release environment * Update .github/workflows/release.yml Co-authored-by: Ben McCann <322311+benmccann@users.noreply.github.com> --------- Co-authored-by: Ben McCann <322311+benmccann@users.noreply.github.com>
1 parent 33d637d commit e3a682f

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

.github/workflows/ci.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,8 @@ jobs:
3333
os: [ubuntu-latest]
3434
steps:
3535
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
36+
with:
37+
persist-credentials: 'false'
3638
- uses: actions/setup-node@395ad3262231945c25e8478fd5baf05154b1d79f # v6.1.0
3739
with:
3840
node-version: ${{ matrix.node }}
@@ -101,6 +103,8 @@ jobs:
101103
svelte: 'current'
102104
steps:
103105
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
106+
with:
107+
persist-credentials: 'false'
104108
- uses: actions/setup-node@395ad3262231945c25e8478fd5baf05154b1d79f # v6.1.0
105109
with:
106110
node-version: ${{ matrix.node }}

.github/workflows/release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ permissions: {}
88

99
jobs:
1010
release:
11+
environment: 'release' # setup in repo settings. contains branch policies for publish access
1112
permissions:
1213
contents: write # to create release (changesets/action)
1314
id-token: write # OpenID Connect token needed for provenance
@@ -25,8 +26,7 @@ jobs:
2526
- name: checkout
2627
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
2728
with:
28-
# This makes Actions fetch all Git history so that Changesets can generate changelogs with the correct commits
29-
fetch-depth: 0
29+
persist-credentials: 'false'
3030
- uses: actions/setup-node@395ad3262231945c25e8478fd5baf05154b1d79f # v6.1.0
3131
with:
3232
node-version: ${{ matrix.node }}

0 commit comments

Comments
 (0)