Skip to content

Openverse is a search engine for openly-licensed media. This monorepo includes all application code.

Use the `ACCESS_TOKEN` secret instead of `GITHUB_TOKEN` (#3394)

Dhruv Bhanushalif56ad179f98d
diff --git a/.github/workflows/issue_automations.yml b/.github/workflows/issue_automations.yml
index 67c62bf24..887b9dbcd 100644
--- a/.github/workflows/issue_automations.yml
+++ b/.github/workflows/issue_automations.yml
@@ -28,7 +28,7 @@ jobs:
EVENT_NAME: ${{ github.event_name }}
EVENT_ACTION: ${{ github.event.action }}
with:
- github-token: ${{ secrets.GITHUB_TOKEN }}
+ github-token: ${{ secrets.ACCESS_TOKEN }}
script: |
const { main } = await import('${{ github.workspace }}/automations/js/src/project_automation/issues.mjs')
await main(github, context)
diff --git a/.github/workflows/pr_automations.yml b/.github/workflows/pr_automations.yml
index a445ba3b5..9bd165b4c 100644
--- a/.github/workflows/pr_automations.yml
+++ b/.github/workflows/pr_automations.yml
@@ -68,7 +68,7 @@ jobs:
- name: Perform PR automations
uses: actions/github-script@v7
with:
- github-token: ${{ secrets.GITHUB_TOKEN }}
+ github-token: ${{ secrets.ACCESS_TOKEN }}
script: |
const { main } = await import('${{ github.workspace }}/automations/js/src/project_automation/prs.mjs')
await main(github)