Home >Development Tools >git >can github actions generate token
Can github actions generate token?
Yes, GitHub Actions can generate tokens, but only personal access tokens.
Can Github workflows generate token?
Yes, GitHub workflows can generate personal access tokens.
How to use github actions to generate personal access token?
<code class="yaml">name: Generate Personal Access Token on: workflow_dispatch: jobs: generate_token: runs-on: ubuntu-latest steps: - uses: actions/create-github-token@v2 with: token_name: "My Token" scopes: "repo:status" # replace with desired scopes - run: echo ${{ secrets.PERSONAL_ACCESS_TOKEN }}</code>
The above is the detailed content of can github actions generate token. For more information, please follow other related articles on the PHP Chinese website!