Skip to content

Commit

Permalink
Merge pull request #1508 from mskanth972/AddPermissions
Browse files Browse the repository at this point in the history
Add permissions to all GitHub actions
  • Loading branch information
k8s-ci-robot authored Nov 25, 2024
2 parents d35527a + 8442c13 commit c963295
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ on:
schedule:
- cron: '33 20 * * 5'

permissions:
contents: read

jobs:
analyze:
name: Analyze
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/container-image.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
name: Container Images

on: push

permissions:
contents: read
security-events: write

jobs:
build:
# this is to prevent the job to run at forked projects
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/helm-chart-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ on:
paths:
- "charts/**"

permissions:
contents: write # Create new release to host chart artifacts
pages: write # Publish chart to pages

jobs:
release:
runs-on: ubuntu-latest
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ on:
# Sequence of patterns matched against refs/tags
tags:
- "v*" # Push events to matching v*, i.e. v1.0, v20.15.10

permissions:
contents: write # Create releases

jobs:
build:
name: Release
Expand Down

0 comments on commit c963295

Please sign in to comment.