Trying Google Apis (Server-to-server) but gives 401 error, even after assigning permissions to the service account. #9
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: invalid_link | |
on: | |
issues: | |
types: [opened, reopened] | |
jobs: | |
close: | |
runs-on: ubuntu-latest | |
permissions: | |
issues: write | |
pull-requests: write | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/github-script@v7 | |
with: | |
script: | | |
const script = require('./.github/scripts/close-invalid-link.cjs') | |
await script({github, context}) |