diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index c24d45e3..d81b0226 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -27,7 +27,7 @@ jobs: - name: Checkout sources uses: actions/checkout@v3 with: - ssh-key: ${{ secrets.DEPLOY_KEY }} + ssh-key: ${{ secrets.GITHUB_TOKEN }} fetch-depth: 0 @@ -41,7 +41,7 @@ jobs: - name: create ssh agent uses: webfactory/ssh-agent@v0.7.0 with: - ssh-private-key: ${{ secrets.DEPLOY_KEY }} + ssh-private-key: ${{ secrets.GITHUB_TOKEN }} - name: Configure git run: | @@ -81,7 +81,7 @@ jobs: uses: actions/github-script@v7 id: release-notes with: - github-token: ${{ secrets.STAGING_PAT }} + github-token: ${{ secrets.GITHUB_TOKEN }} script: | const repo_name = context.payload.repository.full_name const response = await github.request('POST /repos/' + repo_name + '/releases' + '/generate-notes', { @@ -93,7 +93,7 @@ jobs: - name: Create new ${{ needs.deploy.outputs.project_version }} release uses: actions/github-script@v7 with: - github-token: ${{ secrets.STAGING_PAT }} + github-token: ${{ secrets.GITHUB_TOKEN }} script: | const repo_name = context.payload.repository.full_name const response = await github.request('POST /repos/' + repo_name + '/releases', { @@ -108,7 +108,7 @@ jobs: - name: Checkout sources uses: actions/checkout@v3 with: - ssh-key: ${{ secrets.DEPLOY_KEY }} + ssh-key: ${{ secrets.GITHUB_TOKEN }} fetch-depth: 0 - name: Configure git diff --git a/.github/workflows/stage.yml b/.github/workflows/stage.yml index afc56e24..66a99cd4 100644 --- a/.github/workflows/stage.yml +++ b/.github/workflows/stage.yml @@ -61,7 +61,7 @@ jobs: PROJECT_VERSION: ${{ needs.deploy.outputs.project_version }} continue-on-error: true with: - github-token: ${{ secrets.STAGING_PAT }} + github-token: ${{ secrets.GITHUB_TOKEN }} script: | const repo = context.repo; const tag = process.env.PROJECT_VERSION; @@ -89,7 +89,7 @@ jobs: env: RELEASE_ID: ${{ steps.existing_release.outputs.id }} with: - github-token: ${{ secrets.STAGING_PAT }} + github-token: ${{ secrets.GITHUB_TOKEN }} script: | const repo = context.repo; const releaseId = process.env.RELEASE_ID; @@ -122,7 +122,7 @@ jobs: env: PROJECT_VERSION: ${{ needs.deploy.outputs.project_version }} with: - github-token: ${{ secrets.STAGING_PAT }} + github-token: ${{ secrets.GITHUB_TOKEN }} script: | const repo = context.repo; const tag = process.env.PROJECT_VERSION;