Skip to content

Commit

Permalink
Add backport workflow
Browse files Browse the repository at this point in the history
Taking a look at the [backport Action](https://github.com/grafana/grafana-github-actions/blob/main/backport/action.yml#L5).

> GitHub token with issue, comment, and label read/write permissions

It looks to be covered by the default permissions for [`GITHUB_TOKEN`](https://docs.github.com/en/actions/security-guides/automatic-token-authentication#permissions-for-the-github_token).

I'm guessing that the Action does require extra permissions since all other instances of the workflow are using PATs or apps but we can test this by merging this PR and trying a backport.

Signed-off-by: Jack Baldry <jack.baldry@grafana.com>
  • Loading branch information
jdbaldry committed Jan 17, 2024
1 parent 6925666 commit db1639c
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/backport.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Backport PR creator
on:
pull_request_target:
types:
- closed
- labeled

jobs:
main:
if: github.repository == 'grafana/beyla'
runs-on: ubuntu-latest
steps:
- name: Checkout Actions
uses: actions/checkout@v4
with:
repository: grafana/grafana-github-actions
path: ./actions
ref: main
- name: Install Actions
run: npm install --production --prefix ./actions
- name: Run backport
uses: ./actions/backport
with:
token: ${{ secret.GITHUB_TOKEN }}
labelsToAdd: backport
title: "[{{base}}] {{originalTitle}}"

0 comments on commit db1639c

Please sign in to comment.