Will the new generated personal access token affect the workflow? #184
-
Version of the Action Describe the bug Expected behavior Used Workflow # update timings.txt file and push back to the git repo.
name: update_timings_file
# Controls when the workflow will run
on:
# Triggers the workflow on push or pull request events but only for the master branch
push:
branches: [ master ]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
inputs:
tags:
description: 'Run this workflow'
jobs:
update_timings_file:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
ref: ${{ github.head_ref }}
- name: Set up Python 3.9
uses: actions/setup-python@v1
with:
python-version: 3.9
- name: Install dependencies
run: |
pip install --upgrade pip
pip install -e .
pip install -r requirements.txt
- name: Run det_timings.py file
run: |
python3 scripts/det_timings.py
continue-on-error: true
- name: Git pull
run: |
git pull
- name: Update the documents
uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: Auto-generated timings.txt |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Your workflow will be unaffected by a regenerated token, as you do not use a custom GitHub token in your workflow. Actions issues a new The As long as you do not override the |
Beta Was this translation helpful? Give feedback.
Your workflow will be unaffected by a regenerated token, as you do not use a custom GitHub token in your workflow.
Actions issues a new
GITHUB_TOKEN
at the start of each workflow run, which can be used by steps to authenticate with the GitHub API. (See docs)The
actions/checkout
-Action uses the defaultGITHUB_TOKEN
to authenticate the git repository.As long as you do not override the
token
argument for theactions/checkout
-Action, you're good to go.