Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Chore: change workflow permissions #2966

Merged
merged 5 commits into from
Jan 31, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading