Skip to content

Commit a9f5dfa

Browse files
authored
build: replace secrets.STAGING_PAT and secrets.DEPLOY_KEY with secrets.GITHUB_TOKEN (#206)
## Description build: replace secrets.STAGING_PAT and secrets.DEPLOY_KEY with secrets.GITHUB_TOKEN ## Checklist - [x] I have followed this repository's contributing guidelines. - [x] I will adhere to the project's code of conduct.
1 parent 397f6c8 commit a9f5dfa

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

.github/workflows/release.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727
- name: Checkout sources
2828
uses: actions/checkout@v3
2929
with:
30-
ssh-key: ${{ secrets.DEPLOY_KEY }}
30+
ssh-key: ${{ secrets.GITHUB_TOKEN }}
3131
fetch-depth: 0
3232

3333

@@ -41,7 +41,7 @@ jobs:
4141
- name: create ssh agent
4242
uses: webfactory/ssh-agent@v0.7.0
4343
with:
44-
ssh-private-key: ${{ secrets.DEPLOY_KEY }}
44+
ssh-private-key: ${{ secrets.GITHUB_TOKEN }}
4545

4646
- name: Configure git
4747
run: |
@@ -81,7 +81,7 @@ jobs:
8181
uses: actions/github-script@v7
8282
id: release-notes
8383
with:
84-
github-token: ${{ secrets.STAGING_PAT }}
84+
github-token: ${{ secrets.GITHUB_TOKEN }}
8585
script: |
8686
const repo_name = context.payload.repository.full_name
8787
const response = await github.request('POST /repos/' + repo_name + '/releases' + '/generate-notes', {
@@ -93,7 +93,7 @@ jobs:
9393
- name: Create new ${{ needs.deploy.outputs.project_version }} release
9494
uses: actions/github-script@v7
9595
with:
96-
github-token: ${{ secrets.STAGING_PAT }}
96+
github-token: ${{ secrets.GITHUB_TOKEN }}
9797
script: |
9898
const repo_name = context.payload.repository.full_name
9999
const response = await github.request('POST /repos/' + repo_name + '/releases', {
@@ -108,7 +108,7 @@ jobs:
108108
- name: Checkout sources
109109
uses: actions/checkout@v3
110110
with:
111-
ssh-key: ${{ secrets.DEPLOY_KEY }}
111+
ssh-key: ${{ secrets.GITHUB_TOKEN }}
112112
fetch-depth: 0
113113

114114
- name: Configure git

.github/workflows/stage.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ jobs:
6161
PROJECT_VERSION: ${{ needs.deploy.outputs.project_version }}
6262
continue-on-error: true
6363
with:
64-
github-token: ${{ secrets.STAGING_PAT }}
64+
github-token: ${{ secrets.GITHUB_TOKEN }}
6565
script: |
6666
const repo = context.repo;
6767
const tag = process.env.PROJECT_VERSION;
@@ -89,7 +89,7 @@ jobs:
8989
env:
9090
RELEASE_ID: ${{ steps.existing_release.outputs.id }}
9191
with:
92-
github-token: ${{ secrets.STAGING_PAT }}
92+
github-token: ${{ secrets.GITHUB_TOKEN }}
9393
script: |
9494
const repo = context.repo;
9595
const releaseId = process.env.RELEASE_ID;
@@ -122,7 +122,7 @@ jobs:
122122
env:
123123
PROJECT_VERSION: ${{ needs.deploy.outputs.project_version }}
124124
with:
125-
github-token: ${{ secrets.STAGING_PAT }}
125+
github-token: ${{ secrets.GITHUB_TOKEN }}
126126
script: |
127127
const repo = context.repo;
128128
const tag = process.env.PROJECT_VERSION;

0 commit comments

Comments
 (0)