Skip to content

Commit

Permalink
ci: disable persist-credentials for actions/checkout
Browse files Browse the repository at this point in the history
It is a possible security issue, see [1] for the reference.

  [1]: actions/checkout#485
  • Loading branch information
azat committed Jul 6, 2024
1 parent b50f9f5 commit eea1d88
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v4
with:
persist-credentials: false

- name: Check only *.yml extension is used
run: find . -name '*.yaml' | grep -v .pre-commit-config.yaml && exit 1 || echo OK
Expand Down Expand Up @@ -51,6 +53,8 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v4
with:
persist-credentials: false

- name: Setup Python
uses: actions/setup-python@v5
Expand Down

0 comments on commit eea1d88

Please sign in to comment.