Skip to content

Commit 21866ff

Browse files
authored
Merge pull request #2129 from samdoran/checkout-action-update
LCORE- Update checkout action to v7
2 parents 8bbada5 + 18bb240 commit 21866ff

6 files changed

Lines changed: 27 additions & 7 deletions

File tree

.github/workflows/build_and_push_release.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727
# qemu is required for arm64 builds
2828
sudo apt install -y buildah qemu-user-static
2929
- name: Checkout code
30-
uses: actions/checkout@v4
30+
uses: actions/checkout@v7
3131
with:
3232
# Fetch submodules (required for lightspeed-providers)
3333
submodules: 'recursive'

.github/workflows/e2e_tests.yaml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
E2E_LLAMA_HOSTNAME: ${{ vars.E2E_LLAMA_HOSTNAME || 'llama-stack' }}
2525

2626
steps:
27-
- uses: actions/checkout@v4
27+
- uses: actions/checkout@v7
2828
with:
2929
# On PR_TARGET → the fork (or same repo) that opened the PR.
3030
# On push → falls back to the current repository.
@@ -34,6 +34,11 @@ jobs:
3434
# On push → the pushed commit that triggered the workflow.
3535
ref: ${{ github.event.pull_request.head.ref || github.sha }}
3636

37+
# Tests need access to secrets.
38+
# This should be refactored if possible to mitigate the risk.
39+
# https://docs.github.com/en/actions/reference/security/securely-using-pull_request_target
40+
allow-unsafe-pr-checkout: true
41+
3742
# Don’t keep credentials when running untrusted PR code under PR_TARGET.
3843
persist-credentials: ${{ github.event_name != 'pull_request_target' }}
3944

.github/workflows/e2e_tests_lightspeed_evaluation.yaml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717

1818
steps:
1919
- name: Checkout
20-
uses: actions/checkout@v4
20+
uses: actions/checkout@v7
2121
with:
2222
# On PR_TARGET → the fork (or same repo) that opened the PR.
2323
# On push → falls back to the current repository.
@@ -30,6 +30,11 @@ jobs:
3030
# Don’t keep credentials when running untrusted PR code under PR_TARGET.
3131
persist-credentials: ${{ github.event_name != 'pull_request_target' }}
3232

33+
# Tests need access to secrets.
34+
# This should be refactored if possible to mitigate the risk.
35+
# https://docs.github.com/en/actions/reference/security/securely-using-pull_request_target
36+
allow-unsafe-pr-checkout: true
37+
3338
# Fetch submodules (required for lightspeed-providers)
3439
submodules: 'recursive'
3540

@@ -47,7 +52,7 @@ jobs:
4752
git log --oneline -5
4853
4954
- name: Checkout lightspeed-Evaluation
50-
uses: actions/checkout@v4
55+
uses: actions/checkout@v7
5156
with:
5257
repository: lightspeed-core/lightspeed-evaluation
5358
path: lightspeed-evaluation

.github/workflows/e2e_tests_providers.yaml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ jobs:
4949
E2E_DEFAULT_PROVIDER_OVERRIDE: ${{ matrix.e2e_default_provider }}
5050

5151
steps:
52-
- uses: actions/checkout@v4
52+
- uses: actions/checkout@v7
5353
with:
5454
# On PR_TARGET → the fork (or same repo) that opened the PR.
5555
# On push → falls back to the current repository.
@@ -59,6 +59,11 @@ jobs:
5959
# On push → the pushed commit that triggered the workflow.
6060
ref: ${{ github.event.pull_request.head.ref || github.sha }}
6161

62+
# Tests need access to secrets.
63+
# This should be refactored if possible to mitigate the risk.
64+
# https://docs.github.com/en/actions/reference/security/securely-using-pull_request_target
65+
allow-unsafe-pr-checkout: true
66+
6267
# Don’t keep credentials when running untrusted PR code under PR_TARGET.
6368
persist-credentials: ${{ github.event_name != 'pull_request_target' }}
6469

.github/workflows/e2e_tests_rhaiis.yaml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ jobs:
3838
E2E_DEFAULT_PROVIDER_OVERRIDE: vllm
3939

4040
steps:
41-
- uses: actions/checkout@v4
41+
- uses: actions/checkout@v7
4242
with:
4343
# On PR_TARGET → the fork (or same repo) that opened the PR.
4444
# On push → falls back to the current repository.
@@ -48,6 +48,11 @@ jobs:
4848
# On push → the pushed commit that triggered the workflow.
4949
ref: ${{ github.event.pull_request.head.ref || github.sha }}
5050

51+
# Tests need access to secrets.
52+
# This should be refactored if possible to mitigate the risk.
53+
# https://docs.github.com/en/actions/reference/security/securely-using-pull_request_target
54+
allow-unsafe-pr-checkout: true
55+
5156
# Don’t keep credentials when running untrusted PR code under PR_TARGET.
5257
persist-credentials: ${{ github.event_name != 'pull_request_target' }}
5358

.github/workflows/radon.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
pull-requests: read
1313
name: "radon"
1414
steps:
15-
- uses: actions/checkout@v3
15+
- uses: actions/checkout@v7
1616
- uses: davidslusser/actions_python_radon@v1.0.0
1717
with:
1818
src: "src"

0 commit comments

Comments
 (0)