ci: limit the token permissions of the frontend build and Docker workflows (#35557)

The frontend build workflow and two jobs in the Docker workflow ran with the repository's default token permissions, which GitHub code scanning flags. They now get read-only access, plus read access to the published images for the job that copies them to Docker Hub. Every job in both workflows now runs with explicitly set permissions.
This commit is contained in:
Classic298 authored and GitHub committed 2026-12-03 03:20:25 +04:00
1 parent 0072c9974c
commit ae1a952ee4
2 files changed
+8

No files matched your search

+5
View File
@@ -237,6 +237,8 @@ jobs:
runs-on: ubuntu-latest
needs: [merge]
if: ${{ !cancelled() && needs.merge.result == 'success' && (github.ref == 'refs/heads/dev' || startsWith(github.ref, 'refs/tags/v')) }}
permissions:
contents: read
steps:
- name: Create Helm charts app token
id: helm-app-token
@@ -301,6 +303,9 @@ jobs:
runs-on: ubuntu-latest
if: ${{ !cancelled() && (github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags/v')) }}
needs: [merge]
permissions:
contents: read
packages: read
strategy:
fail-fast: false
matrix: