Skip to content

Commit a8f4591

Browse files
committed
fix: use deploy key for pushing to main on deploy
Pushes to main are rightfully blocked except for deploy keys, the GH_TOKEN used was not a deploy key.
1 parent 0b5a254 commit a8f4591

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.circleci/config.yml

+4-2
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,9 @@ jobs:
101101
<<: *defaults
102102
steps:
103103
- checkout
104+
- add_ssh_keys:
105+
fingerprints:
106+
- SHA256:8/K40kKZXhfGUPDuibC3fluK0DaJq8dLX2+JqS16o78
104107
- run: |-
105108
go install github.com/caarlos0/svu@latest
106109
export VERSION=$(svu next)
@@ -117,7 +120,7 @@ jobs:
117120
git add internal/cmd/cmd.go gomod2nix.toml
118121
git commit -m "chore: prepare release ${VERSION}"
119122
git tag ${VERSION}
120-
git push -q https://${GH_TOKEN}@github.com/snyk/vervet.git main --tags
123+
git push main --tags --atomic
121124
fi
122125
123126
release:
@@ -201,7 +204,6 @@ workflows:
201204

202205
- prepare-release:
203206
name: Prepare Release
204-
context: nodejs-app-release
205207
requires:
206208
- Test
207209
- Security Scans

0 commit comments

Comments
 (0)