ci: Use GITHUB_TOKEN instead of PAT

pull/76/head
Robert Dailey 3 years ago
parent b60ed3f079
commit c11132e787

@ -122,7 +122,7 @@ jobs:
- name: Create Release - name: Create Release
uses: softprops/action-gh-release@v1 uses: softprops/action-gh-release@v1
env: env:
GITHUB_TOKEN: ${{ secrets.PAT }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with: with:
files: publish-zip/recyclarr-*.zip files: publish-zip/recyclarr-*.zip
body: ${{ steps.changelog.outputs.release_notes }} body: ${{ steps.changelog.outputs.release_notes }}

@ -12,7 +12,7 @@ jobs:
uses: actions/checkout@v2 uses: actions/checkout@v2
with: with:
fetch-depth: 0 # avoid shallow clone for NBGV fetch-depth: 0 # avoid shallow clone for NBGV
token: ${{ secrets.PAT }} # Allows git push token: ${{ secrets.GITHUB_TOKEN }} # Allows git push
- name: Set up NBGV - name: Set up NBGV
uses: dotnet/nbgv@master uses: dotnet/nbgv@master
@ -46,14 +46,14 @@ jobs:
uses: peter-evans/create-pull-request@v3 uses: peter-evans/create-pull-request@v3
id: cpr id: cpr
with: with:
token: ${{ secrets.PAT }} token: ${{ secrets.GITHUB_TOKEN }}
delete-branch: true delete-branch: true
base: master base: master
- name: Enable Pull Request Automerge - name: Enable Pull Request Automerge
uses: peter-evans/enable-pull-request-automerge@v1 uses: peter-evans/enable-pull-request-automerge@v1
with: with:
token: ${{ secrets.PAT }} token: ${{ secrets.GITHUB_TOKEN }}
pull-request-number: ${{ steps.cpr.outputs.pull-request-number }} pull-request-number: ${{ steps.cpr.outputs.pull-request-number }}
merge-method: merge merge-method: merge
title: "Preparation for Release: ${{ env.VERSION }}" title: "Preparation for Release: ${{ env.VERSION }}"

@ -20,7 +20,7 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
env: env:
DOTNET_ROLL_FORWARD: LatestMajor DOTNET_ROLL_FORWARD: LatestMajor
GITHUB_TOKEN: ${{ secrets.PAT }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
steps: steps:
- name: Get Source Code - name: Get Source Code
uses: actions/checkout@v2 uses: actions/checkout@v2

@ -20,7 +20,7 @@ jobs:
uses: Andrew-Chen-Wang/github-wiki-action@v2 uses: Andrew-Chen-Wang/github-wiki-action@v2
env: env:
WIKI_DIR: wiki/ WIKI_DIR: wiki/
GH_TOKEN: ${{ secrets.PAT }} GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GH_MAIL: ${{ secrets.EMAIL }} GH_MAIL: ${{ secrets.EMAIL }}
GH_NAME: ${{ github.repository_owner }} GH_NAME: ${{ github.repository_owner }}
EXCLUDED_FILES: "*.json" EXCLUDED_FILES: "*.json"

Loading…
Cancel
Save