Skip to content

Commit

Permalink
ci(workflows): permissions updated in workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
AsifNawaz-cnic committed Nov 8, 2023
1 parent 0e7110a commit 8eddd7c
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 6 deletions.
12 changes: 7 additions & 5 deletions .github/workflows/auto-merge-dependabot-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,19 +5,21 @@ on:
- opened
- synchronize

permissions:
contents: write
pull-requests: write

jobs:
tests:
uses: ./.github/workflows/test.yml
secrets: inherit

permissions:
contents: read

dependabot:
name: Auto-merge Dependabot PR
runs-on: ubuntu-latest
needs: tests
permissions:
contents: write
pull-requests: write

if: ${{ github.actor == 'dependabot[bot]' }}
steps:
- name: Dependabot metadata
Expand Down
8 changes: 7 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,17 @@ jobs:
build:
name: Build
uses: ./.github/workflows/test.yml

secrets: inherit
permissions:
contents: read

release:
name: Release @ ubuntu-latest
runs-on: ubuntu-latest
needs: build
permissions:
contents: write

steps:
- name: Checkout
uses: actions/checkout@v4
Expand Down

0 comments on commit 8eddd7c

Please sign in to comment.