File tree Expand file tree Collapse file tree 2 files changed +15
-1
lines changed Expand file tree Collapse file tree 2 files changed +15
-1
lines changed Original file line number Diff line number Diff line change 6
6
branches :
7
7
- main
8
8
9
+ permissions : {}
10
+
9
11
jobs :
10
12
pre-commit :
11
13
runs-on : ubuntu-latest
12
14
steps :
13
15
- uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
14
16
with : # for gitlint
17
+ persist-credentials : false
15
18
ref : ${{ github.event.pull_request.head.sha }}
16
19
fetch-depth : 0
17
20
- uses : actions/setup-python@42375524e23c412d93fb67b49958b491fce71c38 # v5.4.0
53
56
fail-fast : false
54
57
steps :
55
58
- uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
59
+ with :
60
+ persist-credentials : false
56
61
- uses : googleapis/release-please-action@5792afc6b46e9bb55deda9eda973a18c226bc3fc # v4.1.5
57
62
with :
58
63
config-file : .github/release-please-config.json
@@ -87,10 +92,13 @@ jobs:
87
92
sha256sums.txt
88
93
if : matrix.dist == 'alpine'
89
94
- name : Upload release assets
95
+ permissions :
96
+ contents : write
90
97
run : |
91
98
set -x
92
- gh release upload ${{steps.release.outputs.tag_name} } \
99
+ gh release upload ${RELEASE_PLEASE_TAG_NAME } \
93
100
bash-completion-$(cat version.txt).tar.xz sha256sums.txt
94
101
env :
95
102
GH_TOKEN : ${{github.token}}
103
+ RELEASE_PLEASE_TAG_NAME : ${{steps.release.outputs.tag_name}}
96
104
if : steps.release.outputs.release_created
Original file line number Diff line number Diff line change 15
15
- test/docker/*/install-packages.sh
16
16
workflow_dispatch :
17
17
18
+ permissions : {}
19
+
18
20
jobs :
19
21
update-test-image :
20
22
runs-on : ubuntu-latest
29
31
- dist : ubuntu14
30
32
steps :
31
33
- uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
34
+ with :
35
+ persist-credentials : false
32
36
- uses : docker/login-action@74a5d142397b4f367a81961eba4e8cd7edddf772 # v3.4.0
37
+ permissions :
38
+ packages : write # Get token that can write to ghcr.io
33
39
with :
34
40
registry : ghcr.io
35
41
username : ${{github.repository_owner}}
You can’t perform that action at this time.
0 commit comments