Skip to content

Commit

Permalink
github: Use ephemeral token for backport-assistant (#35554)
Browse files Browse the repository at this point in the history
  • Loading branch information
radeksimko authored Aug 12, 2024
1 parent 438a683 commit 7342f9a
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,21 1,25 @@
---
name: Backport Assistant Runner

on:
pull_request_target:
types:
- closed


permissions:
contents: write # to push to a new branch
pull-requests: write # to create a new PR

jobs:
backport:
if: github.event.pull_request.merged
runs-on: ubuntu-latest
container: hashicorpdev/backport-assistant:0.4.3@sha256:2381806dd059c14515463b87e8a923d57734bd484beea6a561e411e25628e010
container: hashicorpdev/backport-assistant:0.4.6@sha256:4216e0662085278a6e5b8fd8fbc84fc5e55e598b08a3608b54ba96e81decebcd
steps:
- name: Run Backport Assistant
run: |
backport-assistant backport
env:
BACKPORT_LABEL_REGEXP: "(?P<target>\\d \\.\\d )-backport"
BACKPORT_TARGET_TEMPLATE: "v{{.target}}"
GITHUB_TOKEN: ${{ secrets.ELEVATED_GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ github.token }}

0 comments on commit 7342f9a

Please sign in to comment.