Skip to content

Commit 5e769dd

Browse files
authored
chore(security): remediate workflow zizmor issues (#39)
1 parent d2433a5 commit 5e769dd

2 files changed

Lines changed: 7 additions & 2 deletions

File tree

.github/workflows/build.yaml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,13 @@ on:
66
jobs:
77
build:
88
runs-on: ubuntu-22.04
9+
permissions:
10+
contents: read
911
steps:
1012
- name: Checkout
1113
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
14+
with:
15+
persist-credentials: false
1216

1317
- name: setup Crossplane cli
1418
uses: crossplane-contrib/setup-crossplane-action@cb8aac3f1246b19f101e7f85fd0a38623b4d5ad3 # v0.1.1
@@ -19,7 +23,7 @@ jobs:
1923
version: v0.20.0
2024

2125
- name: setup jrsonnet
22-
uses: grafana/shared-workflows/actions/setup-jrsonnet@main
26+
uses: grafana/shared-workflows/actions/setup-jrsonnet@bc9486e0e7cbe24b54d0dcdf8be459eb777567b0
2327

2428
- name: Build xpkg
2529
run: "make -B build"

.github/workflows/push.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,8 @@ jobs:
1919
steps:
2020
- name: Checkout
2121
uses: actions/checkout@v4
22-
22+
with:
23+
persist-credentials: false
2324
- name: setup Crossplane cli
2425
uses: crossplane-contrib/setup-crossplane-action@cb8aac3f1246b19f101e7f85fd0a38623b4d5ad3 # v0.1.1
2526

0 commit comments

Comments
 (0)