Skip to content

Commit f8ada9b

Browse files
authored
chore: update gh token (#412)
1 parent c0d5a0e commit f8ada9b

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

codebuild/release/upload_artifacts.yml

+7-2
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,17 @@ env:
88
BRANCH: "master"
99
git-credential-helper: yes
1010
secrets-manager:
11-
GH_TOKEN: Github/aws-crypto-tools-ci-bot:personal\ access\ token\ (new\ token\ format)
11+
GH_TOKEN: Github/aws-crypto-tools-ci-bot:ESDK Release Token
1212

1313
phases:
1414
pre_build:
1515
commands:
1616
# get new project version
1717
- export VERSION=$(grep version pom.xml | head -n 1 | sed -n 's/[ \t]*<version>\(.*\)<\/version>/\1/p')
18+
- git config --global user.name "aws-crypto-tools-ci-bot"
19+
- git config --global user.email "[email protected]"
20+
- echo $GH_TOKEN > token.txt
21+
- export GH_TOKEN=
1822
# install gh cli in order to upload artifacts
1923
- curl -fsSL https://cli.github.com/packages/githubcli-archive-keyring.gpg | gpg --dearmor -o /usr/share/keyrings/githubcli-archive-keyring.gpg
2024
- echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/githubcli-archive-keyring.gpg] https://cli.github.com/packages stable main" | tee /etc/apt/sources.list.d/github-cli.list > /dev/null
@@ -24,7 +28,8 @@ phases:
2428
build:
2529
commands:
2630
- gh version
27-
- gh auth login --with-token < $GH_TOKEN
31+
- gh auth login --with-token < token.txt
32+
- gh auth status
2833
- |
2934
mvn org.apache.maven.plugins:maven-dependency-plugin:3.1.2:get \
3035
-DrepoUrl=https://aws.oss.sonatype.org \

0 commit comments

Comments
 (0)