Skip to content

Commit 5a8f3d6

Browse files
authored
securing github actions (#243)
Securing GH actions as followup from [the incident on April 26th 2025](https://grafana.com/blog/2025/04/27/grafana-security-update-no-customer-impact-from-github-workflow-vulnerability/). -- Signed-off-by: JuanJo Ciarlante <juanjosec@gmail.com>
1 parent d20e609 commit 5a8f3d6

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

.github/workflows/publish-docs.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,15 @@ on:
77
jobs:
88
publish-docs:
99
runs-on: ubuntu-latest
10+
permissions:
11+
contents: read
12+
pages: write
1013

1114
steps:
1215
- uses: actions/checkout@v4
1316
with:
1417
fetch-depth: 0
18+
persist-credentials: false
1519

1620
- uses: actions/setup-python@v5
1721

.github/workflows/tests.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,13 @@ env:
99
jobs:
1010
tests:
1111
runs-on: ubuntu-latest
12+
permissions:
13+
contents: read
1214

1315
steps:
1416
- uses: actions/checkout@v4
17+
with:
18+
persist-credentials: false
1519

1620
- name: Install jsonnet
1721
run: |

0 commit comments

Comments
 (0)