Skip to content

Commit ee6fc7e

Browse files
committed
CI: limit artifact uploads
do not upload some unneeded intermediate directories, disable running authenticated git commands with the checkout action. Thanks to Yaron A for the report. closes #5435 No functional change
1 parent b9ff5bb commit ee6fc7e

11 files changed

+29
-2
lines changed

.github/workflows/arm_compilation.yml

+5-1
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ jobs:
2626
- uses: actions/checkout@v4
2727
with:
2828
fetch-depth: 0
29+
persist-credentials: false
2930

3031
- name: Download required linux packages
3132
if: runner.os == 'Linux'
@@ -91,4 +92,7 @@ jobs:
9192
uses: actions/upload-artifact@v4
9293
with:
9394
name: ${{ matrix.config.simple_name }} ${{ matrix.binaries }}
94-
path: .
95+
path: |
96+
.
97+
!.git
98+
!.output

.github/workflows/clang-format.yml

+1
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ jobs:
1919
- uses: actions/checkout@v4
2020
with:
2121
ref: ${{ github.event.pull_request.head.sha }}
22+
persist-credentials: false
2223

2324
- name: Run clang-format style check
2425
uses: jidicula/clang-format-action@f62da5e3d3a2d88ff364771d9d938773a618ab5e # @v4.11.0

.github/workflows/codeql.yml

+2
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@ jobs:
3030
steps:
3131
- name: Checkout repository
3232
uses: actions/checkout@v4
33+
with:
34+
persist-credentials: false
3335

3436
# Initializes the CodeQL tools for scanning.
3537
- name: Initialize CodeQL

.github/workflows/compilation.yml

+6-1
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ jobs:
2525
shell: ${{ matrix.config.shell }}
2626
steps:
2727
- uses: actions/checkout@v4
28+
with:
29+
persist-credentials: false
2830

2931
- name: Install fixed GCC on Linux
3032
if: runner.os == 'Linux'
@@ -86,4 +88,7 @@ jobs:
8688
uses: actions/upload-artifact@v4
8789
with:
8890
name: ${{ matrix.config.simple_name }} ${{ matrix.binaries }}
89-
path: .
91+
path: |
92+
.
93+
!.git
94+
!.output

.github/workflows/games.yml

+2
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ jobs:
1313
with:
1414
ref: ${{ github.event.pull_request.head.sha }}
1515
path: Stockfish
16+
persist-credentials: false
1617

1718
- name: build debug enabled version of SF
1819
working-directory: Stockfish/src
@@ -24,6 +25,7 @@ jobs:
2425
repository: Disservin/fast-chess
2526
path: fast-chess
2627
ref: d54af1910d5479c669dc731f1f54f9108a251951
28+
persist-credentials: false
2729

2830
- name: fast-chess build
2931
working-directory: fast-chess

.github/workflows/iwyu.yml

+2
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,15 @@ jobs:
1414
uses: actions/checkout@v4
1515
with:
1616
path: Stockfish
17+
persist-credentials: false
1718

1819
- name: Checkout include-what-you-use
1920
uses: actions/checkout@v4
2021
with:
2122
repository: include-what-you-use/include-what-you-use
2223
ref: f25caa280dc3277c4086ec345ad279a2463fea0f
2324
path: include-what-you-use
25+
persist-credentials: false
2426

2527
- name: Download required linux packages
2628
run: |

.github/workflows/matetrack.yml

+2
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ jobs:
1313
with:
1414
ref: ${{ github.event.pull_request.head.sha }}
1515
path: Stockfish
16+
persist-credentials: false
1617

1718
- name: build SF
1819
working-directory: Stockfish/src
@@ -24,6 +25,7 @@ jobs:
2425
repository: vondele/matetrack
2526
path: matetrack
2627
ref: 20287a1a145f30a166b7ef251eddb611e4e44fbf
28+
persist-credentials: false
2729

2830
- name: matetrack install deps
2931
working-directory: matetrack

.github/workflows/sanitizers.yml

+2
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,8 @@ jobs:
4040
shell: ${{ matrix.config.shell }}
4141
steps:
4242
- uses: actions/checkout@v4
43+
with:
44+
persist-credentials: false
4345

4446
- name: Download required linux packages
4547
run: |

.github/workflows/stockfish.yml

+4
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ jobs:
1717
runs-on: ubuntu-latest
1818
steps:
1919
- uses: actions/checkout@v4
20+
with:
21+
persist-credentials: false
2022

2123
# returns null if no pre-release exists
2224
- name: Get Commit SHA of Latest Pre-release
@@ -66,6 +68,8 @@ jobs:
6668
arm_matrix: ${{ steps.set-arm-matrix.outputs.arm_matrix }}
6769
steps:
6870
- uses: actions/checkout@v4
71+
with:
72+
persist-credentials: false
6973
- id: set-matrix
7074
run: |
7175
TASKS=$(echo $(cat .github/ci/matrix.json) )

.github/workflows/tests.yml

+1
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,7 @@ jobs:
106106
- uses: actions/checkout@v4
107107
with:
108108
fetch-depth: 0
109+
persist-credentials: false
109110

110111
- name: Download required linux packages
111112
if: runner.os == 'Linux'

.github/workflows/upload_binaries.yml

+2
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ jobs:
2525
shell: ${{ matrix.config.shell }}
2626
steps:
2727
- uses: actions/checkout@v4
28+
with:
29+
persist-credentials: false
2830

2931
- name: Download artifact from compilation
3032
uses: actions/download-artifact@v4

0 commit comments

Comments
 (0)