Skip to content

Commit 6ff1a6a

Browse files
authored
Update workflows to pass zizmor check (#146)
1 parent f6e18e8 commit 6ff1a6a

File tree

3 files changed

+15
-0
lines changed

3 files changed

+15
-0
lines changed

.github/workflows/check_golang_profiler_changes.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,18 @@ on:
55
- cron: '20 4 * * *'
66
workflow_dispatch:
77

8+
permissions:
9+
contents: read
10+
811
jobs:
912
check_golang_profiler_changes:
1013
runs-on: ubuntu-latest
1114
if: github.repository == 'grafana/pyroscope-go' # avoid running on forks
1215
steps:
1316
- name: Checkout
1417
uses: actions/checkout@v4
18+
with:
19+
persist-credentials: false
1520
- uses: actions/setup-go@v5
1621
with:
1722
go-version: '1.20'

.github/workflows/go.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ on:
66
pull_request:
77
branches: [main]
88

9+
permissions:
10+
contents: read
11+
912
jobs:
1013
go:
1114
runs-on: ubuntu-latest
@@ -16,6 +19,8 @@ jobs:
1619
steps:
1720
- name: Checkout
1821
uses: actions/checkout@v4
22+
with:
23+
persist-credentials: false
1924

2025
- name: Install Go ${{ matrix.go }}
2126
if: matrix.go != 'tip'

.github/workflows/gotip_cron_test.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,17 @@ on:
55
- cron: '37 1 * * *'
66
workflow_dispatch:
77

8+
permissions:
9+
contents: read
10+
811
jobs:
912
go:
1013
runs-on: ubuntu-latest
1114
steps:
1215
- name: Checkout
1316
uses: actions/checkout@v4
17+
with:
18+
persist-credentials: false
1419
- name: Install Go stable
1520
uses: actions/setup-go@v5
1621
with:

0 commit comments

Comments
 (0)