Skip to content

Commit

Permalink
ci: remove git credentials after checkout (#118)
Browse files Browse the repository at this point in the history
  • Loading branch information
Fdawgs authored May 19, 2022
1 parent 7c3cab1 commit 65dedb2
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ jobs:
- name: Check out repo
if: steps.release.outputs.release_created
uses: actions/checkout@v3
with:
persist-credentials: false

- name: Setup Node
if: steps.release.outputs.release_created
Expand Down
9 changes: 9 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ jobs:
steps:
- name: Check out repo
uses: actions/checkout@v3
with:
persist-credentials: false

- name: Dependency review
uses: actions/dependency-review-action@v1
Expand All @@ -47,6 +49,8 @@ jobs:
steps:
- name: Check out repo
uses: actions/checkout@v3
with:
persist-credentials: false

- name: Setup Node
uses: actions/setup-node@v3
Expand Down Expand Up @@ -76,6 +80,7 @@ jobs:
uses: actions/checkout@v3
with:
fetch-depth: 0
persist-credentials: false

- name: Run Commitlint
uses: wagoid/commitlint-github-action@v4
Expand All @@ -93,6 +98,8 @@ jobs:
steps:
- name: Check out repo
uses: actions/checkout@v3
with:
persist-credentials: false

- name: Setup Node ${{ matrix.node-version }}
uses: actions/setup-node@v3
Expand Down Expand Up @@ -139,6 +146,8 @@ jobs:
steps:
- name: Check out repo
uses: actions/checkout@v3
with:
persist-credentials: false

- name: Save PR number
run: |
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ jobs:
steps:
- name: Check out repo
uses: actions/checkout@v3
with:
persist-credentials: false

# Initialises the CodeQL tools for scanning
- name: Initialise CodeQL
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/link-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@ jobs:
steps:
- name: Check out repo
uses: actions/checkout@v3
with:
persist-credentials: false

- name: Run Linkinator
uses: JustinBeckwith/linkinator-action@v1
Expand Down

0 comments on commit 65dedb2

Please sign in to comment.