Skip to content

Commit

Permalink
Chore: change workflow permissions (#2966)
Browse files Browse the repository at this point in the history
  • Loading branch information
thewahome committed Jan 31, 2024
1 parent f643693 commit b3345d3
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 137 deletions.
118 changes: 0 additions & 118 deletions .github/workflows/combine-prs.yml

This file was deleted.

23 changes: 4 additions & 19 deletions .github/workflows/cut-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ on:
description: Release type (major/minor/patch)
required: true

permissions:
pull-requests: write
contents: write

jobs:
cut-release:
name: Creates release branch and PRs into dev/master
Expand Down Expand Up @@ -74,22 +78,3 @@ jobs:
echo "NEW_VERSION=${newVersion}" >> $GITHUB_ENV
echo "::set-output name=branchName::$branchName"
- name: Create pull request into dev
uses: repo-sync/pull-request@v2
if: ${{ github.event.inputs.release-type == 'major' || github.event.inputs.release-type == 'minor' }}
with:
source_branch: ${{ steps.create-release.outputs.branchName }}
destination_branch: "dev"
github_token: ${{ secrets.GITHUB_TOKEN }}
pr_title: "Chore: Update to ${{ env.NEW_VERSION }}"
pr_body: ${{ env.devPrBody }}

- name: Create pull request into master
uses: repo-sync/pull-request@v2
with:
source_branch: ${{ steps.create-release.outputs.branchName }}
destination_branch: "master"
github_token: ${{ secrets.GITHUB_TOKEN }}
pr_title: "Chore: Release ${{ env.NEW_VERSION }}"
pr_body: ${{ env.masterPrBody }}
4 changes: 4 additions & 0 deletions .github/workflows/linter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ on:
env:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}

permissions:
contents: write
pull-requests: write

jobs:
install:
name: Install node modules
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/projectbot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@ on:
issues:
types:
- opened

permissions:
issues: write
repository-projects: write

jobs:
track_issue:
runs-on: ubuntu-latest
Expand Down

0 comments on commit b3345d3

Please sign in to comment.