@@ -7,6 +7,10 @@ concurrency:
77 # and head_ref (available when CI is triggered by a PR).
88 group : " ${{ github.ref_name }}-${{ github.head_ref }}"
99 cancel-in-progress : true
10+
11+ permissions :
12+ contents : read
13+
1014jobs :
1115 build_linux :
1216 name : Build on Linux
1923 steps :
2024 - name : Checkout code
2125 uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
26+ with :
27+ persist-credentials : false
2228 - name : Set ownership
2329 # https://github.com/actions/runner/issues/2033#issuecomment-1204205989
2430 run : |
4450 steps :
4551 - name : Checkout code
4652 uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
53+ with :
54+ persist-credentials : false
4755 - name : Set ownership
4856 # https://github.com/actions/runner/issues/2033#issuecomment-1204205989
4957 run : |
6472 steps :
6573 - name : Checkout code
6674 uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
75+ with :
76+ persist-credentials : false
6777 - name : Set up Go
6878 uses : actions/setup-go@0aaccfd150d50ccaeb58ebd88d36e91967a5f35b # v5.4.0
6979 with :
7989 steps :
8090 - name : Checkout code
8191 uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
92+ with :
93+ persist-credentials : false
8294 - name : Set up Go
8395 uses : actions/setup-go@0aaccfd150d50ccaeb58ebd88d36e91967a5f35b # v5.4.0
8496 with :
94106 steps :
95107 - name : Checkout code
96108 uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
109+ with :
110+ persist-credentials : false
97111 - name : Set up Go
98112 uses : actions/setup-go@0aaccfd150d50ccaeb58ebd88d36e91967a5f35b # v5.4.0
99113 with :
@@ -113,6 +127,8 @@ jobs:
113127 steps :
114128 - name : Checkout code
115129 uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
130+ with :
131+ persist-credentials : false
116132 - name : Set ownership
117133 # https://github.com/actions/runner/issues/2033#issuecomment-1204205989
118134 run : |
0 commit comments