Skip to content

Commit

Permalink
ci: disable actions/checkout's persist-credentials using disable-chec…
Browse files Browse the repository at this point in the history
  • Loading branch information
suzuki-shunsuke committed Dec 25, 2024
1 parent 43fd4f8 commit ba41b5b
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 6 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
persist-credentials: false
- uses: actions/setup-go@v2
with:
go-version: ${{ matrix.goVersion }}
Expand All @@ -58,6 +60,8 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
persist-credentials: false
- uses: actions/cache@v2
with:
path: |
Expand All @@ -72,6 +76,8 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
persist-credentials: false
- run: sudo apt install python3-dev python3-setuptools
- run: pip install -U wheel
- run: pip install -U pytest setuptools
Expand All @@ -95,6 +101,8 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
persist-credentials: false
- uses: goreleaser/goreleaser-action@v2
with:
args: release --snapshot --skip-publish --rm-dist
10 changes: 4 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,18 +12,16 @@ jobs:
release:
runs-on: ubuntu-latest
steps:
-
name: Checkout
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
-
name: Set up Go
persist-credentials: false
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.20
-
name: Run GoReleaser
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v2
with:
version: latest
Expand Down

0 comments on commit ba41b5b

Please sign in to comment.