chore: Set permissions for GitHub actions
@@ -9,8 +9,15 @@ on:
schedule:
- cron: '0 16 * * 3'
+permissions:
+ contents: read
+
jobs:
analyze:
+ permissions:
+ actions: read # for github/codeql-action/init to get workflow details
+ contents: read # for actions/checkout to fetch code
+ security-events: write # for github/codeql-action/autobuild to send a status report
name: Analyze
runs-on: ubuntu-latest
@@ -5,6 +5,9 @@ on:
branches:
- master
build:
@@ -5,8 +5,13 @@ on:
release:
+ contents: write # for helm/chart-releaser-action to push chart release and create a release
steps:
- name: Checkout