mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-27 15:16:43 +00:00
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
This commit is contained in:
parent
080afd4381
commit
94fcd7d9ce
5 changed files with 23 additions and 0 deletions
4
.github/workflows/bump_version.yml
vendored
4
.github/workflows/bump_version.yml
vendored
|
|
@ -19,6 +19,8 @@ jobs:
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
with:
|
with:
|
||||||
ref: ${{ github.head_ref }}
|
ref: ${{ github.head_ref }}
|
||||||
|
persist-credentials: false
|
||||||
|
|
||||||
- name: check diff
|
- name: check diff
|
||||||
id: check_diff
|
id: check_diff
|
||||||
run: |
|
run: |
|
||||||
|
|
@ -45,11 +47,13 @@ jobs:
|
||||||
echo '> yes'
|
echo '> yes'
|
||||||
echo "result=bump" >> "$GITHUB_OUTPUT"
|
echo "result=bump" >> "$GITHUB_OUTPUT"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
- name: Install Node.js 16
|
- name: Install Node.js 16
|
||||||
if: steps.check_diff.outputs.result == 'bump'
|
if: steps.check_diff.outputs.result == 'bump'
|
||||||
uses: actions/setup-node@v3
|
uses: actions/setup-node@v3
|
||||||
with:
|
with:
|
||||||
node-version: 16
|
node-version: 16
|
||||||
|
|
||||||
- name: bump version in params/version.go
|
- name: bump version in params/version.go
|
||||||
if: steps.check_diff.outputs.result == 'bump'
|
if: steps.check_diff.outputs.result == 'bump'
|
||||||
run: node .github/scripts/bump_version_dot_go.mjs
|
run: node .github/scripts/bump_version_dot_go.mjs
|
||||||
|
|
|
||||||
2
.github/workflows/docker-arm64.yaml
vendored
2
.github/workflows/docker-arm64.yaml
vendored
|
|
@ -19,6 +19,8 @@ jobs:
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
|
with:
|
||||||
|
persist-credentials: false
|
||||||
|
|
||||||
- name: Set up QEMU
|
- name: Set up QEMU
|
||||||
run: |
|
run: |
|
||||||
|
|
|
||||||
3
.github/workflows/docker.yaml
vendored
3
.github/workflows/docker.yaml
vendored
|
|
@ -13,6 +13,8 @@ jobs:
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
|
with:
|
||||||
|
persist-credentials: false
|
||||||
|
|
||||||
- name: Set up QEMU
|
- name: Set up QEMU
|
||||||
uses: docker/setup-qemu-action@2b82ce82d56a2a04d2637cd93a637ae1b359c0a7 # v2.2.0
|
uses: docker/setup-qemu-action@2b82ce82d56a2a04d2637cd93a637ae1b359c0a7 # v2.2.0
|
||||||
|
|
@ -21,6 +23,7 @@ jobs:
|
||||||
uses: docker/setup-buildx-action@885d1462b80bc1c1c7f0b00334ad271f09369c55 # v2.10.0
|
uses: docker/setup-buildx-action@885d1462b80bc1c1c7f0b00334ad271f09369c55 # v2.10.0
|
||||||
with:
|
with:
|
||||||
cache-binary: false
|
cache-binary: false
|
||||||
|
|
||||||
- name: Extract docker metadata
|
- name: Extract docker metadata
|
||||||
id: meta
|
id: meta
|
||||||
uses: docker/metadata-action@902fa8ec7d6ecbf8d84d538b9b233a880e428804 # v5.7.0
|
uses: docker/metadata-action@902fa8ec7d6ecbf8d84d538b9b233a880e428804 # v5.7.0
|
||||||
|
|
|
||||||
12
.github/workflows/l2geth_ci.yml
vendored
12
.github/workflows/l2geth_ci.yml
vendored
|
|
@ -25,6 +25,8 @@ jobs:
|
||||||
|
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
|
with:
|
||||||
|
persist-credentials: false
|
||||||
|
|
||||||
- name: Build
|
- name: Build
|
||||||
run: |
|
run: |
|
||||||
|
|
@ -48,6 +50,8 @@ jobs:
|
||||||
|
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
|
with:
|
||||||
|
persist-credentials: false
|
||||||
|
|
||||||
- name: Build
|
- name: Build
|
||||||
run: |
|
run: |
|
||||||
|
|
@ -66,6 +70,8 @@ jobs:
|
||||||
|
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
|
with:
|
||||||
|
persist-credentials: false
|
||||||
|
|
||||||
- name: Lint
|
- name: Lint
|
||||||
run: |
|
run: |
|
||||||
|
|
@ -86,6 +92,8 @@ jobs:
|
||||||
|
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
|
with:
|
||||||
|
persist-credentials: false
|
||||||
|
|
||||||
- run: goimports -local github.com/scroll-tech/go-ethereum/ -w .
|
- run: goimports -local github.com/scroll-tech/go-ethereum/ -w .
|
||||||
|
|
||||||
|
|
@ -107,6 +115,8 @@ jobs:
|
||||||
|
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
|
with:
|
||||||
|
persist-credentials: false
|
||||||
|
|
||||||
- run: go mod tidy
|
- run: go mod tidy
|
||||||
|
|
||||||
|
|
@ -128,6 +138,8 @@ jobs:
|
||||||
|
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
|
with:
|
||||||
|
persist-credentials: false
|
||||||
|
|
||||||
- name: Test
|
- name: Test
|
||||||
run: |
|
run: |
|
||||||
|
|
|
||||||
2
.github/workflows/semgrep.yml
vendored
2
.github/workflows/semgrep.yml
vendored
|
|
@ -21,4 +21,6 @@ jobs:
|
||||||
image: returntocorp/semgrep
|
image: returntocorp/semgrep
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
|
with:
|
||||||
|
persist-credentials: false
|
||||||
- run: semgrep ci
|
- run: semgrep ci
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue