Skip to content

Commit

Permalink
fix: workflow permissions
Browse files Browse the repository at this point in the history
  • Loading branch information
saidsef committed Nov 30, 2024
1 parent 02db65b commit ff92f70
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
6 changes: 5 additions & 1 deletion .github/workflows/charts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ jobs:
chart:
runs-on: ubuntu-latest
permissions:
id-token: write
pages: write
security-events: write
contents: write
Expand Down Expand Up @@ -97,6 +96,11 @@ jobs:
with:
sarif_file: 'trivy-results.sarif'

dependency-review:
uses: saidsef/saidsef/.github/workflows/dependency-review.yaml@main
if: ${{ github.event_name == 'pull_request' }}
needs: [chart]

k8s-test:
runs-on: ubuntu-latest
needs: [chart]
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/scorecard.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ jobs:
runs-on: ubuntu-latest
permissions:
security-events: write
id-token: write
steps:
- name: "Checkout code"
uses: actions/checkout@v4
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/stale.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,13 @@ on:
schedule:
- cron: '30 3 * * *'

permissions: read-all

jobs:
stale:
runs-on: ubuntu-latest
permissions:
issues: write
steps:
- uses: actions/stale@v9
with:
Expand Down

0 comments on commit ff92f70

Please sign in to comment.