According to GitHub Docs, one can use GitHub CLI commands in a workflow.
I am trying to programmatically update the description of the repository from a workflow in that repository, and the only solution I found was using the GitHub CLI:
name: update repo
on: push
jobs:
update:
runs-on: ubuntu-latest
permissions: write-all
steps:
- name: 'Checkout repository'
uses: actions/checkout@v3
- name: 'Update repository description'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: gh repo edit --description "test"
but even with permissions: write-all
, I still get the error:
HTTP 403: Resource not accessible by integration