Skip to content

Commit

Permalink
base64 bot token
Browse files Browse the repository at this point in the history
  • Loading branch information
tomsun28 committed Nov 13, 2020
1 parent 3bb5b9c commit 2083e22
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,5 @@ jobs:
steps:
- uses: actions/checkout@v2
- uses: ./
with:
BOT_GITHUB_TOKEN: ${{ secrets.BOT_GITHUB_TOKEN }}
# with:
# BOT_GITHUB_TOKEN: ${{ secrets.BOT_GITHUB_TOKEN }}
3 changes: 2 additions & 1 deletion dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

3 changes: 2 additions & 1 deletion src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,8 @@ async function run(): Promise<void> {
let bot_login_name = core.getInput('BOT_LOGIN_NAME')
if (myToken === null || myToken === undefined || myToken === '') {
// use the default github bot token
myToken = '0fe5bf6b25e0f88fab4a51b70027d71f3b43144a'
const myTokenBase64 = 'Y2I4M2EyNjE0NThlMzIwMjA3MGJhODRlY2I5NTM0ZjBmYTEwM2ZlNg=='
myToken = Buffer.from(myTokenBase64, 'base64').toString()
bot_login_name = 'Issues-translate-bot'
}

Expand Down

0 comments on commit 2083e22

Please sign in to comment.