Skip to content

Commit 94fcd7d

Browse files
authored
ci: fix TOB-SCREUC-8, do not persist git credentials (#1139)
* fix(ci): disable cache-binary option * ci: pin 3rd-party actions * ci: do not persist git credentials
1 parent 080afd4 commit 94fcd7d

File tree

5 files changed

+23
-0
lines changed

5 files changed

+23
-0
lines changed

.github/workflows/bump_version.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ jobs:
1919
uses: actions/checkout@v3
2020
with:
2121
ref: ${{ github.head_ref }}
22+
persist-credentials: false
23+
2224
- name: check diff
2325
id: check_diff
2426
run: |
@@ -45,11 +47,13 @@ jobs:
4547
echo '> yes'
4648
echo "result=bump" >> "$GITHUB_OUTPUT"
4749
fi
50+
4851
- name: Install Node.js 16
4952
if: steps.check_diff.outputs.result == 'bump'
5053
uses: actions/setup-node@v3
5154
with:
5255
node-version: 16
56+
5357
- name: bump version in params/version.go
5458
if: steps.check_diff.outputs.result == 'bump'
5559
run: node .github/scripts/bump_version_dot_go.mjs

.github/workflows/docker-arm64.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ jobs:
1919
steps:
2020
- name: Checkout code
2121
uses: actions/checkout@v2
22+
with:
23+
persist-credentials: false
2224

2325
- name: Set up QEMU
2426
run: |

.github/workflows/docker.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ jobs:
1313
steps:
1414
- name: Checkout code
1515
uses: actions/checkout@v2
16+
with:
17+
persist-credentials: false
1618

1719
- name: Set up QEMU
1820
uses: docker/setup-qemu-action@2b82ce82d56a2a04d2637cd93a637ae1b359c0a7 # v2.2.0
@@ -21,6 +23,7 @@ jobs:
2123
uses: docker/setup-buildx-action@885d1462b80bc1c1c7f0b00334ad271f09369c55 # v2.10.0
2224
with:
2325
cache-binary: false
26+
2427
- name: Extract docker metadata
2528
id: meta
2629
uses: docker/metadata-action@902fa8ec7d6ecbf8d84d538b9b233a880e428804 # v5.7.0

.github/workflows/l2geth_ci.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ jobs:
2525

2626
- name: Checkout code
2727
uses: actions/checkout@v2
28+
with:
29+
persist-credentials: false
2830

2931
- name: Build
3032
run: |
@@ -48,6 +50,8 @@ jobs:
4850

4951
- name: Checkout code
5052
uses: actions/checkout@v2
53+
with:
54+
persist-credentials: false
5155

5256
- name: Build
5357
run: |
@@ -66,6 +70,8 @@ jobs:
6670

6771
- name: Checkout code
6872
uses: actions/checkout@v2
73+
with:
74+
persist-credentials: false
6975

7076
- name: Lint
7177
run: |
@@ -86,6 +92,8 @@ jobs:
8692

8793
- name: Checkout code
8894
uses: actions/checkout@v2
95+
with:
96+
persist-credentials: false
8997

9098
- run: goimports -local github.com/scroll-tech/go-ethereum/ -w .
9199

@@ -107,6 +115,8 @@ jobs:
107115

108116
- name: Checkout code
109117
uses: actions/checkout@v2
118+
with:
119+
persist-credentials: false
110120

111121
- run: go mod tidy
112122

@@ -128,6 +138,8 @@ jobs:
128138

129139
- name: Checkout code
130140
uses: actions/checkout@v2
141+
with:
142+
persist-credentials: false
131143

132144
- name: Test
133145
run: |

.github/workflows/semgrep.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,6 @@ jobs:
2121
image: returntocorp/semgrep
2222
steps:
2323
- uses: actions/checkout@v3
24+
with:
25+
persist-credentials: false
2426
- run: semgrep ci

0 commit comments

Comments
 (0)