Skip to content

Commit

Permalink
CI: limit artifact uploads
Browse files Browse the repository at this point in the history
do not upload some unneeded intermediate directories,
disable running authenticated git commands with the checkout action.

Thanks to Yaron A for the report.

closes official-stockfish#5435

No functional change
  • Loading branch information
vondele committed Jul 3, 2024
1 parent b9ff5bb commit ee6fc7e
Show file tree
Hide file tree
Showing 11 changed files with 29 additions and 2 deletions.
6 changes: 5 additions & 1 deletion .github/workflows/arm_compilation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ jobs:
- uses: actions/checkout@v4
with:
fetch-depth: 0
persist-credentials: false

- name: Download required linux packages
if: runner.os == 'Linux'
Expand Down Expand Up @@ -91,4 +92,7 @@ jobs:
uses: actions/upload-artifact@v4
with:
name: ${{ matrix.config.simple_name }} ${{ matrix.binaries }}
path: .
path: |
.
!.git
!.output
1 change: 1 addition & 0 deletions .github/workflows/clang-format.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ jobs:
- uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.sha }}
persist-credentials: false

- name: Run clang-format style check
uses: jidicula/clang-format-action@f62da5e3d3a2d88ff364771d9d938773a618ab5e # @v4.11.0
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ jobs:
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
persist-credentials: false

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
Expand Down
7 changes: 6 additions & 1 deletion .github/workflows/compilation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ jobs:
shell: ${{ matrix.config.shell }}
steps:
- uses: actions/checkout@v4
with:
persist-credentials: false

- name: Install fixed GCC on Linux
if: runner.os == 'Linux'
Expand Down Expand Up @@ -86,4 +88,7 @@ jobs:
uses: actions/upload-artifact@v4
with:
name: ${{ matrix.config.simple_name }} ${{ matrix.binaries }}
path: .
path: |
.
!.git
!.output
2 changes: 2 additions & 0 deletions .github/workflows/games.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ jobs:
with:
ref: ${{ github.event.pull_request.head.sha }}
path: Stockfish
persist-credentials: false

- name: build debug enabled version of SF
working-directory: Stockfish/src
Expand All @@ -24,6 +25,7 @@ jobs:
repository: Disservin/fast-chess
path: fast-chess
ref: d54af1910d5479c669dc731f1f54f9108a251951
persist-credentials: false

- name: fast-chess build
working-directory: fast-chess
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/iwyu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,15 @@ jobs:
uses: actions/checkout@v4
with:
path: Stockfish
persist-credentials: false

- name: Checkout include-what-you-use
uses: actions/checkout@v4
with:
repository: include-what-you-use/include-what-you-use
ref: f25caa280dc3277c4086ec345ad279a2463fea0f
path: include-what-you-use
persist-credentials: false

- name: Download required linux packages
run: |
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/matetrack.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ jobs:
with:
ref: ${{ github.event.pull_request.head.sha }}
path: Stockfish
persist-credentials: false

- name: build SF
working-directory: Stockfish/src
Expand All @@ -24,6 +25,7 @@ jobs:
repository: vondele/matetrack
path: matetrack
ref: 20287a1a145f30a166b7ef251eddb611e4e44fbf
persist-credentials: false

- name: matetrack install deps
working-directory: matetrack
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/sanitizers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@ jobs:
shell: ${{ matrix.config.shell }}
steps:
- uses: actions/checkout@v4
with:
persist-credentials: false

- name: Download required linux packages
run: |
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/stockfish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
persist-credentials: false

# returns null if no pre-release exists
- name: Get Commit SHA of Latest Pre-release
Expand Down Expand Up @@ -66,6 +68,8 @@ jobs:
arm_matrix: ${{ steps.set-arm-matrix.outputs.arm_matrix }}
steps:
- uses: actions/checkout@v4
with:
persist-credentials: false
- id: set-matrix
run: |
TASKS=$(echo $(cat .github/ci/matrix.json) )
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,7 @@ jobs:
- uses: actions/checkout@v4
with:
fetch-depth: 0
persist-credentials: false

- name: Download required linux packages
if: runner.os == 'Linux'
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/upload_binaries.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ jobs:
shell: ${{ matrix.config.shell }}
steps:
- uses: actions/checkout@v4
with:
persist-credentials: false

- name: Download artifact from compilation
uses: actions/download-artifact@v4
Expand Down

0 comments on commit ee6fc7e

Please sign in to comment.