Skip to content

Commit

Permalink
fix(actions): secure workflows (#259)
Browse files Browse the repository at this point in the history
  • Loading branch information
BobTheBuidler authored Oct 28, 2024
1 parent cd9d14d commit 80d42ee
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 4 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/deploy-docs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ jobs:
steps:
- name: Check out code
uses: actions/[email protected]
with:
persist-credentials: false

- name: Set up Python
uses: actions/setup-python@v5
Expand Down Expand Up @@ -65,6 +67,7 @@ jobs:
uses: actions/checkout@v4
with:
ref: gh-pages
persist-credentials: false

- name: Setup Pages
uses: actions/configure-pages@v4
Expand Down
9 changes: 5 additions & 4 deletions .github/workflows/mypy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,11 @@ jobs:
pyversion: [ "3.8", "3.9", "3.10", "3.11", "3.12" ]

steps:
- name: Checkout
uses: actions/[email protected]
with:
fetch-depth: 0
- name: Checkout
uses: actions/[email protected]
with:
fetch-depth: 0
persist-credentials: false

- name: Setup Python (faster than using Python container)
uses: actions/setup-python@v5
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/pytest.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@ jobs:
steps:
- name: Check out repository code
uses: actions/[email protected]
with:
persist-credentials: false

- name: Setup Python (faster than using Python container)
uses: actions/setup-python@v5
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ jobs:
uses: actions/[email protected]
with:
fetch-depth: 0
persist-credentials: false

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

0 comments on commit 80d42ee

Please sign in to comment.