Skip to content

Commit 74f8f8d

Browse files
authored
Merge pull request #77 from nearform/fix/optic-release-action-permissions
fix: optic release action permissions
2 parents ef1749b + 24667ab commit 74f8f8d

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

.github/workflows/release.yml

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
name: release
2-
32
on:
43
workflow_dispatch:
54
inputs:
65
semver:
7-
description: 'The semver to use'
6+
description: The semver to use
87
required: true
98
default: patch
109
type: choice
@@ -18,13 +17,17 @@ on:
1817
jobs:
1918
release:
2019
permissions:
21-
pull-requests: write
2220
contents: write
21+
issues: write
22+
pull-requests: write
2323
runs-on: ubuntu-latest
2424
steps:
2525
- uses: nearform-actions/optic-release-automation-action@v4
2626
with:
27-
npm-token: ${{ secrets[format('NPM_TOKEN_{0}', github.actor)] || secrets.NPM_TOKEN }}
28-
optic-token: ${{ secrets[format('OPTIC_TOKEN_{0}', github.actor)] || secrets.OPTIC_TOKEN }}
27+
npm-token: >-
28+
${{ secrets[format('NPM_TOKEN_{0}', github.actor)] ||
29+
secrets.NPM_TOKEN }}
30+
optic-token: >-
31+
${{ secrets[format('OPTIC_TOKEN_{0}', github.actor)] ||
32+
secrets.OPTIC_TOKEN }}
2933
semver: ${{ github.event.inputs.semver }}
30-

0 commit comments

Comments
 (0)