Skip to content

Commit

Permalink
Do not persist credentials in checkout CI action
Browse files Browse the repository at this point in the history
This mitigates a potential security risk. More info here:
<actions/checkout#485>
  • Loading branch information
justinmayer committed Nov 3, 2024
1 parent a4bd14a commit 838704a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions {{cookiecutter.repo_name}}/.github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ jobs:

steps:
- uses: actions/checkout@v4
with:
persist-credentials: false

- name: Set up Python ${{ "{{" }} matrix.python-version {{ "}}" }} & PDM
uses: pdm-project/setup-pdm@v4
Expand All @@ -39,6 +41,8 @@ jobs:

steps:
- uses: actions/checkout@v4
with:
persist-credentials: false

- name: Validate links in Markdown files
uses: JustinBeckwith/linkinator-action@v1
Expand Down

0 comments on commit 838704a

Please sign in to comment.