Skip to content

Commit

Permalink
Merge pull request #1828 from rockerBOO/workflow-security-audit
Browse files Browse the repository at this point in the history
Prevent git credentials from leaking into other actions
  • Loading branch information
kohya-ss authored Dec 15, 2024
2 parents e425996 + 3cb8cb2 commit d3305f9
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@ jobs:

steps:
- uses: actions/checkout@v4
with:
# https://woodruffw.github.io/zizmor/audits/#artipacked
persist-credentials: false

- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/typos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ jobs:

steps:
- uses: actions/checkout@v4
with:
# https://woodruffw.github.io/zizmor/audits/#artipacked
persist-credentials: false

- name: typos-action
uses: crate-ci/typos@v1.28.1

0 comments on commit d3305f9

Please sign in to comment.