Skip to content

Commit

Permalink
fix: use deploy key for pushing to main on deploy
Browse files Browse the repository at this point in the history
Pushes to main are rightfully blocked except for deploy keys, the GH_TOKEN used
was not a deploy key.
  • Loading branch information
jgresty committed Nov 13, 2024
1 parent 0b5a254 commit a8f4591
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,9 @@ jobs:
<<: *defaults
steps:
- checkout
- add_ssh_keys:
fingerprints:
- SHA256:8/K40kKZXhfGUPDuibC3fluK0DaJq8dLX2+JqS16o78
- run: |-
go install github.com/caarlos0/svu@latest
export VERSION=$(svu next)
Expand All @@ -117,7 +120,7 @@ jobs:
git add internal/cmd/cmd.go gomod2nix.toml
git commit -m "chore: prepare release ${VERSION}"
git tag ${VERSION}
git push -q https://${GH_TOKEN}@github.com/snyk/vervet.git main --tags
git push main --tags --atomic
fi
release:
Expand Down Expand Up @@ -201,7 +204,6 @@ workflows:

- prepare-release:
name: Prepare Release
context: nodejs-app-release
requires:
- Test
- Security Scans
Expand Down

0 comments on commit a8f4591

Please sign in to comment.