File tree Expand file tree Collapse file tree 3 files changed +21
-1
lines changed Expand file tree Collapse file tree 3 files changed +21
-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
39
42
40
43
distcheck :
41
44
runs-on : ubuntu-latest
45
+ permissions :
46
+ contents : write # TODO: This is needed for release, maybe split the release steps to a different job?
42
47
strategy :
43
48
matrix :
44
49
include :
53
58
fail-fast : false
54
59
steps :
55
60
- uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
61
+ with :
62
+ persist-credentials : false
56
63
- uses : googleapis/release-please-action@5792afc6b46e9bb55deda9eda973a18c226bc3fc # v4.1.5
57
64
with :
58
65
config-file : .github/release-please-config.json
89
96
- name : Upload release assets
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
27
29
- dist : debian10
28
30
- dist : fedoradev
29
31
- dist : ubuntu14
32
+ permissions :
33
+ packages : write # Get token that can write to ghcr.io
30
34
steps :
31
35
- uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
36
+ with :
37
+ persist-credentials : false
32
38
- uses : docker/login-action@74a5d142397b4f367a81961eba4e8cd7edddf772 # v3.4.0
33
39
with :
34
40
registry : ghcr.io
Original file line number Diff line number Diff line change @@ -102,3 +102,9 @@ repos:
102
102
hooks :
103
103
- id : typos
104
104
exclude : ^(CHANGELOG\.md|test/(test-cmd-list\.txt|fixtures/.+))$
105
+
106
+ - repo : https://github.com/zizmorcore/zizmor-pre-commit
107
+ rev : v1.13.0
108
+ hooks :
109
+ - id : zizmor
110
+ files : ' ^.github/.*$'
You can’t perform that action at this time.
0 commit comments