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 dea3135 commit fdc21ba
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ jobs:

steps:
- uses: actions/checkout@v3
with:
persist-credentials: false
- uses: Swatinem/rust-cache@v2
with:
cache-on-failure: true
Expand Down Expand Up @@ -43,6 +45,7 @@ jobs:
#
# [1]: https://github.blog/2020-12-21-get-up-to-speed-with-partial-clone-and-shallow-clone/
fetch-depth: 0
persist-credentials: false

# Workaround for https://github.com/actions/checkout/issues/882
- name: Fix tags for release
Expand Down Expand Up @@ -103,6 +106,8 @@ jobs:

steps:
- uses: actions/checkout@v3
with:
persist-credentials: false
- uses: Swatinem/rust-cache@v2
with:
cache-on-failure: true
Expand All @@ -126,6 +131,7 @@ jobs:
#
# [1]: https://github.blog/2020-12-21-get-up-to-speed-with-partial-clone-and-shallow-clone/
fetch-depth: 0
persist-credentials: false

# Workaround for https://github.com/actions/checkout/issues/882
- name: Fix tags for release
Expand Down Expand Up @@ -177,6 +183,7 @@ jobs:
#
# [1]: https://github.blog/2020-12-21-get-up-to-speed-with-partial-clone-and-shallow-clone/
fetch-depth: 0
persist-credentials: false

# Workaround for https://github.com/actions/checkout/issues/882
- name: Fix tags for release
Expand Down Expand Up @@ -228,6 +235,7 @@ jobs:
#
# [1]: https://github.blog/2020-12-21-get-up-to-speed-with-partial-clone-and-shallow-clone/
fetch-depth: 0
persist-credentials: false

# Workaround for https://github.com/actions/checkout/issues/882
- name: Fix tags for release
Expand Down

0 comments on commit fdc21ba

Please sign in to comment.