mirror of
https://github.com/bjw-s-labs/helm-charts.git
synced 2025-07-03 16:37:04 +02:00
ci: Set workflow permissions
This commit is contained in:
parent
7025193763
commit
d3bd21cf8a
5 changed files with 26 additions and 2 deletions
3
.github/workflows/chart-release-steps.yaml
vendored
3
.github/workflows/chart-release-steps.yaml
vendored
|
@ -41,6 +41,9 @@ on:
|
||||||
required: false
|
required: false
|
||||||
type: string
|
type: string
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
release-chart:
|
release-chart:
|
||||||
name: Release chart
|
name: Release chart
|
||||||
|
|
3
.github/workflows/charts-lint.yaml
vendored
3
.github/workflows/charts-lint.yaml
vendored
|
@ -17,6 +17,9 @@ on:
|
||||||
required: false
|
required: false
|
||||||
type: string
|
type: string
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
validate-required-changes:
|
validate-required-changes:
|
||||||
name: Validate required changes
|
name: Validate required changes
|
||||||
|
|
13
.github/workflows/charts-release.yaml
vendored
13
.github/workflows/charts-release.yaml
vendored
|
@ -17,6 +17,9 @@ on:
|
||||||
paths:
|
paths:
|
||||||
- "charts/**"
|
- "charts/**"
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
prepare:
|
prepare:
|
||||||
name: Prepare data required for workflow
|
name: Prepare data required for workflow
|
||||||
|
@ -127,6 +130,11 @@ jobs:
|
||||||
chart: ${{ fromJSON(needs.prepare.outputs.libraryChartsToRelease) }}
|
chart: ${{ fromJSON(needs.prepare.outputs.libraryChartsToRelease) }}
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
max-parallel: 1
|
max-parallel: 1
|
||||||
|
permissions:
|
||||||
|
pages: write
|
||||||
|
id-token: write
|
||||||
|
contents: write
|
||||||
|
packages: write
|
||||||
uses: ./.github/workflows/chart-release-steps.yaml
|
uses: ./.github/workflows/chart-release-steps.yaml
|
||||||
with:
|
with:
|
||||||
chart: ${{ matrix.chart }}
|
chart: ${{ matrix.chart }}
|
||||||
|
@ -151,6 +159,11 @@ jobs:
|
||||||
chart: ${{ fromJSON(needs.prepare.outputs.otherChartsToRelease) }}
|
chart: ${{ fromJSON(needs.prepare.outputs.otherChartsToRelease) }}
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
max-parallel: 1
|
max-parallel: 1
|
||||||
|
permissions:
|
||||||
|
pages: write
|
||||||
|
id-token: write
|
||||||
|
contents: write
|
||||||
|
packages: write
|
||||||
uses: ./.github/workflows/chart-release-steps.yaml
|
uses: ./.github/workflows/chart-release-steps.yaml
|
||||||
with:
|
with:
|
||||||
chart: ${{ matrix.chart }}
|
chart: ${{ matrix.chart }}
|
||||||
|
|
5
.github/workflows/charts-test.yaml
vendored
5
.github/workflows/charts-test.yaml
vendored
|
@ -17,6 +17,9 @@ on:
|
||||||
required: false
|
required: false
|
||||||
type: string
|
type: string
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
install-chart:
|
install-chart:
|
||||||
name: Install chart
|
name: Install chart
|
||||||
|
@ -60,7 +63,7 @@ jobs:
|
||||||
python-version: "3.11"
|
python-version: "3.11"
|
||||||
|
|
||||||
- name: Set up chart-testing
|
- name: Set up chart-testing
|
||||||
uses: helm/chart-testing-action@v2.6.1
|
uses: helm/chart-testing-action@0d28d3144d3a25ea2cc349d6e59901c4ff469b3b # v2.7.0
|
||||||
|
|
||||||
- name: Create k3d cluster
|
- name: Create k3d cluster
|
||||||
uses: nolar/setup-k3d-k3s@293b8e5822a20bc0d5bcdd4826f1a665e72aba96 # v1.0.9
|
uses: nolar/setup-k3d-k3s@293b8e5822a20bc0d5bcdd4826f1a665e72aba96 # v1.0.9
|
||||||
|
|
4
.github/workflows/docs-release.yaml
vendored
4
.github/workflows/docs-release.yaml
vendored
|
@ -11,7 +11,7 @@ on:
|
||||||
- "docs/**"
|
- "docs/**"
|
||||||
|
|
||||||
permissions:
|
permissions:
|
||||||
contents: write
|
contents: read
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
release-docs:
|
release-docs:
|
||||||
|
@ -19,6 +19,8 @@ jobs:
|
||||||
runs-on: ubuntu-22.04
|
runs-on: ubuntu-22.04
|
||||||
concurrency:
|
concurrency:
|
||||||
group: ${{ github.workflow }}-${{ github.ref }}
|
group: ${{ github.workflow }}-${{ github.ref }}
|
||||||
|
permissions:
|
||||||
|
contents: write
|
||||||
steps:
|
steps:
|
||||||
- name: Generate Token
|
- name: Generate Token
|
||||||
uses: actions/create-github-app-token@3ff1caaa28b64c9cc276ce0a02e2ff584f3900c5 # v2.0.2
|
uses: actions/create-github-app-token@3ff1caaa28b64c9cc276ce0a02e2ff584f3900c5 # v2.0.2
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue