Skip to content

Commit 2f67dcb

Browse files
committed
lock down actions
1 parent e60c3cd commit 2f67dcb

File tree

2 files changed

+11
-7
lines changed

2 files changed

+11
-7
lines changed

.github/workflows/release.yml

+7-4
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,16 @@ on:
55
tags:
66
- "v*.*.*"
77

8-
permissions:
9-
contents: write
108

119
jobs:
1210
goreleaser:
1311
runs-on: ubuntu-latest
12+
permissions:
13+
contents: write
1414
steps:
15-
- name: Checkout
16-
uses: actions/checkout@v4
15+
- uses: actions/checkout@v4
1716
with:
17+
persist-credentials: false
1818
fetch-depth: 0
1919
- name: Set up Go
2020
uses: actions/setup-go@v5
@@ -33,6 +33,9 @@ jobs:
3333
runs-on: ubuntu-latest
3434
steps:
3535
- uses: actions/checkout@v4
36+
with:
37+
persist-credentials: false
38+
fetch-depth: 0
3639
- uses: actions/setup-python@v5
3740
with:
3841
python-version: "3.12"

.github/workflows/test.yml

+4-3
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,11 @@ on:
99
jobs:
1010
test:
1111
runs-on: ubuntu-latest
12-
1312
steps:
14-
- name: Checkout code
15-
uses: actions/checkout@v4
13+
- uses: actions/checkout@v4
14+
with:
15+
persist-credentials: false
16+
fetch-depth: 0
1617
- name: Set up Go
1718
uses: actions/setup-go@v5
1819
with:

0 commit comments

Comments
 (0)