Skip to content

Commit 506495e

Browse files
committed
chore: implement permission best practive and helm chart signed to satisfy openssf checks
1 parent 4239150 commit 506495e

10 files changed

Lines changed: 31 additions & 1 deletion

File tree

.github/workflows/_reusable-build.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ on:
1313
required: true
1414
type: string
1515

16+
permissions: read-all
17+
1618
env:
1719
REGISTRY: ghcr.io
1820

.github/workflows/codeql-analysis.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ on:
1515
env:
1616
GO_VERSION: '1.26'
1717

18+
permissions: read-all
19+
1820
jobs:
1921
analyze:
2022
name: Analyze

.github/workflows/links.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ on:
55
- cron: "00 18 * * 1"
66
workflow_dispatch:
77

8+
permissions: read-all
9+
810
jobs:
911
check:
1012
runs-on: ubuntu-24.04

.github/workflows/lint-golang.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ on:
1313
env:
1414
GO_VERSION: '1.26'
1515

16+
permissions: read-all
17+
1618
jobs:
1719
golangci-lint:
1820
name: golangci-lint

.github/workflows/lint-helm.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ on:
88
- '.github/workflows/lint-helm.yaml'
99
pull_request:
1010

11+
permissions: read-all
12+
1113
jobs:
1214
helm-lint:
1315
name: helm-lint

.github/workflows/release-helm.yaml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,10 @@ jobs:
6464
needs: [detect, e2e]
6565
if: ${{ always() && needs.detect.outputs.skip == 'false' && (needs.e2e.result == 'success' || needs.e2e.result == 'skipped') }}
6666
runs-on: ubuntu-24.04
67+
permissions:
68+
contents: write
69+
packages: write
70+
id-token: write
6771
steps:
6872
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
6973

@@ -85,6 +89,12 @@ jobs:
8589
mkdir -p dist
8690
helm package ${{ env.CHART_DIR }} --destination dist
8791
92+
- uses: sigstore/cosign-installer@6f9f17788090df1f26f669e9d70d6ae9567deba6 # v4.1.2
93+
94+
- name: Sign chart package
95+
run: |
96+
cosign sign-blob dist/*.tgz --output-signature dist/*.tgz.sig --yes
97+
8898
- name: Push chart to GHCR OCI
8999
run: |
90100
helm push dist/*.tgz oci://${{ env.REGISTRY }}/${{ env.CHART_OCI_REPO }}
@@ -106,6 +116,7 @@ jobs:
106116
fi
107117
gh release create "helm-v${{ needs.detect.outputs.chart_version }}" \
108118
dist/*.tgz \
119+
dist/*.sig \
109120
--notes-file .release_notes \
110121
--title "helm-v${{ needs.detect.outputs.chart_version }}" \
111122
--draft \

.github/workflows/test-integration.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ on:
66
env:
77
GO_VERSION: '1.26'
88

9+
permissions: read-all
10+
911
jobs:
1012
build:
1113
runs-on: ubuntu-24.04

.github/workflows/test.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ on:
1515
env:
1616
GO_VERSION: '1.26'
1717

18+
permissions: read-all
19+
1820
jobs:
1921
test:
2022
runs-on: ubuntu-24.04

deploy/helm/CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
# Helm chart changelog
22

3+
## [1.9.4] - 2026-06-28
4+
5+
### Added
6+
- Chart packages are signed too now
7+
38
## [1.9.3] - 2026-06-26
49

510
### Changed

deploy/helm/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ apiVersion: v2
22
name: upcloud-csi
33
description: CSI driver for UpCloud block storage
44
type: application
5-
version: "1.9.3"
5+
version: "1.9.4"
66
appVersion: "v2.8.3"
77
kubeVersion: ">=1.21.0"
88
keywords:

0 commit comments

Comments
 (0)