Computer scienceSystem administration and DevOpsCI/CD processesGitHub Actions

GitHub and token authentication

Analyzing YAML for GITHUB_TOKEN Usage

Report a typo

Review the following YAML snippet from a GitHub Actions workflow:

name: Issue Automation
on: push
jobs:
  create-issue:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v2
      - name: Create an Issue
        run: |
          curl --request POST \
          --url https://api.github.com/repos/${{ github.repository }}/issues \
          --header 'authorization: Bearer ${{ secrets.GITHUB_TOKEN }}' \
          --header 'content-type: application/json' \
          --data '{"title": "New Issue from Push", "body": "This issue was created automatically."}'

What is the purpose of the GITHUB_TOKEN in this workflow?

Select one option from the list
___

Create a free account to access the full topic