Skip to content

Commit 43e3209

Browse files
committed
ci(github-actions): use custom PAT for force pushes and andd env for goreleaser
1 parent 5dcaea5 commit 43e3209

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

.github/workflows/check_links.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ on:
88

99
jobs:
1010
linkChecker:
11+
permissions:
12+
issues: write # required for peter-evans/create-issue-from-file
1113
runs-on: ubuntu-latest
1214
steps:
1315
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
@@ -16,7 +18,6 @@ jobs:
1618
id: lychee
1719
uses: lycheeverse/lychee-action@f613c4a64e50d792e0b31ec34bbcbba12263c6a6 # v2.3.0
1820
with:
19-
token: ${{ secrets.GH_TOKEN }}
2021
fail: false
2122

2223
- name: Create Issue From File
@@ -26,4 +27,3 @@ jobs:
2627
title: Link Checker Report
2728
content-filepath: ./lychee/out.md
2829
labels: report, automated issue
29-
token: ${{ secrets.GH_TOKEN }}

.github/workflows/gorelease.yml

+3
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ on:
44
push:
55
tags:
66
- v\d+\.\d+\.\d+
7+
workflow_dispatch:
78

89
jobs:
910
goreleaser:
@@ -25,3 +26,5 @@ jobs:
2526
distribution: goreleaser
2627
version: '~> v2'
2728
args: release --clean
29+
env:
30+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/replace_version.yml

+1-3
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,11 @@ on:
77
jobs:
88
replace_version:
99
runs-on: ubuntu-latest
10-
permissions:
11-
contents: write
1210
steps:
1311
- name: Checkout
1412
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
1513
with:
16-
token: ${{ secrets.GITHUB_TOKEN }}
14+
token: ${{ secrets.SVC_PAT }}
1715
ref: main
1816

1917
- name: Replace image version in k8s manifests

0 commit comments

Comments
 (0)