Skip to content

Commit

Permalink
Fix workflow permissions
Browse files Browse the repository at this point in the history
  • Loading branch information
ylabonte committed Mar 19, 2024
1 parent af813ba commit ceff3a2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
6 changes: 2 additions & 4 deletions .github/workflows/automerge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,21 +3,19 @@ name: "Auto-Merge Dependabot PRs"
on: [ pull_request ]

permissions:
actions: read
security-events: write
contents: write
pull-requests: write

jobs:
ci:
name: "Run CI Workflow"
uses: ./.github/workflows/ci.yml
codeql:
name: "Run CodeQL Workflow"
uses: ./.github/workflows/codeql.yml
automerge:
name: "Auto-merge PR (Dependabot only!)"
needs:
- ci
- codeql
runs-on: ubuntu-latest
if: github.actor == 'dependabot[bot]'
steps:
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ name: "CI Workflow"

permissions:
pull-requests: write
# issues: write
contents: write

on:
Expand Down

0 comments on commit ceff3a2

Please sign in to comment.