ci: revoke github token and uses personal access token also remove push scope for trigger

This commit is contained in:
Anda Toshiki 2023-03-28 19:15:16 +08:00
parent 3042ded78b
commit e456094e4c

View File

@ -1,7 +1,7 @@
name: Update RSS feeds on README section name: Update RSS feeds on README section
on: on:
push: # push:
workflow_dispatch: # allow users to randomly trigger workflows for debugging workflow_dispatch: # allow users to randomly trigger workflows for debugging
schedule: schedule:
- cron: '0 * * * *' # workflow run per 24 hours - cron: '0 * * * *' # workflow run per 24 hours
@ -13,7 +13,7 @@ jobs:
- name: Check out the latest commit of the repository history - name: Check out the latest commit of the repository history
uses: actions/checkout@v2 uses: actions/checkout@v2
with: with:
token: ${{ secrets.GITHUB_TOKEN }} token: ${{ secrets.GH_PAT }}
- name: Set up node environment - name: Set up node environment
uses: actions/setup-node@v3 uses: actions/setup-node@v3
with: with: