Skip to content

Commit bcd6649

Browse files
committed
Merge remote-tracking branch 'origin/master'
2 parents 93e0f76 + 01b4375 commit bcd6649

5 files changed

Lines changed: 33 additions & 18 deletions

File tree

.github/dependabot.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: github-actions
4+
directory: /
5+
schedule:
6+
interval: monthly
7+
groups:
8+
actions:
9+
patterns:
10+
- '*'

.github/workflows/_shared-prepare-docker-cache.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ jobs:
3939
- name: Cache Docker images.
4040
id: cache
4141
if: ${{ steps.check_cache.outputs.exists == 'false' }}
42-
uses: ScribeMD/docker-cache@0.5.0
42+
uses: ScribeMD/docker-cache@fb28c93772363301b8d0a6072ce850224b73f74e # 0.5.0
4343
with:
4444
key: kurtosis-docker-${{ runner.os }}-${{ steps.kurtosis_version.outputs.kurtosis_version }}
4545

@@ -54,7 +54,7 @@ jobs:
5454
if: ${{ steps.cache.outputs.cache-hit == 'false' }}
5555
continue-on-error: true
5656
id: testnet
57-
uses: ethpandaops/kurtosis-assertoor-github-action@v1
57+
uses: ethpandaops/kurtosis-assertoor-github-action@5932604b244dbd2ddb811516b516a9094f4d2c2f # v1
5858
with:
5959
kurtosis_extra_args: "--image-download always --non-blocking-tasks --verbosity DETAILED"
6060
kurtosis_backend: docker

.github/workflows/_shared-run-test.yaml

Lines changed: 19 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -77,9 +77,9 @@ jobs:
7777
timeout-minutes: 1440
7878
steps:
7979
- name: Checkout Repository
80-
uses: actions/checkout@v4
80+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
8181
- name: Cache Docker images.
82-
uses: ScribeMD/docker-cache@0.5.0
82+
uses: ScribeMD/docker-cache@fb28c93772363301b8d0a6072ce850224b73f74e # 0.5.0
8383
with:
8484
key: kurtosis-docker-${{ runner.os }}-${{ inputs.kurtosis_version }}
8585
read-only: true
@@ -148,7 +148,7 @@ jobs:
148148
cl_type=$(echo "$pair" | sed 's/^\(.*\)-\(.*\)$/\1/')
149149
el_type=$(echo "$pair" | sed 's/^\(.*\)-\(.*\)$/\2/')
150150
fi
151-
151+
152152
if [[ "$cl_type" == *"/"* ]]; then
153153
vc_type=$(echo "$cl_type" | sed 's/^\(.*\)\/\(.*\)$/\2/')
154154
cl_type=$(echo "$cl_type" | sed 's/^\(.*\)\/\(.*\)$/\1/')
@@ -257,7 +257,7 @@ jobs:
257257
258258
- name: Run kurtosis testnet
259259
id: testnet
260-
uses: ethpandaops/kurtosis-assertoor-github-action@v1
260+
uses: ethpandaops/kurtosis-assertoor-github-action@5932604b244dbd2ddb811516b516a9094f4d2c2f # v1
261261
with:
262262
kurtosis_extra_args: "--non-blocking-tasks --verbosity DETAILED"
263263
kurtosis_backend: ${{ inputs.backend }}
@@ -269,10 +269,10 @@ jobs:
269269
enclave_name: "assertoor-${{ github.run_id }}-${{ inputs.id }}"
270270
await_assertoor_tests: "false"
271271
enclave_dump: "false"
272-
272+
273273
- name: Await assertoor test result
274274
id: test_result
275-
uses: ethpandaops/assertoor-github-action@v1
275+
uses: ethpandaops/assertoor-github-action@2c0747b6d798a3a646d4339c85258940b8fa66ff # v1
276276
if: ${{ fromJson(steps.testnet.outputs.services).assertoor.http.url != '' }}
277277
with:
278278
kurtosis_enclave_name: "assertoor-${{ github.run_id }}-${{ inputs.id }}"
@@ -389,7 +389,7 @@ jobs:
389389

390390
- name: Upload dump artifact
391391
if: ${{ steps.enclave_dump.outputs.dump_dir != '' }}
392-
uses: actions/upload-artifact@v4
392+
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
393393
with:
394394
name: "enclave-dump-assertoor-${{ github.run_id }}-${{ inputs.id }}"
395395
path: "${{ steps.enclave_dump.outputs.dump_dir }}"
@@ -404,17 +404,17 @@ jobs:
404404
echo "- **Test ID:** ${{ inputs.id }}" >> $GITHUB_STEP_SUMMARY
405405
echo "- **Name:** ${{ inputs.name }}" >> $GITHUB_STEP_SUMMARY
406406
echo "- **Status:** ${{ steps.test_result.outputs.result }}" >> $GITHUB_STEP_SUMMARY
407-
407+
408408
start_time="${{ steps.clients.outputs.start_time }}"
409409
end_time="$(date +%s)"
410410
runtime="$(expr $end_time - $start_time)"
411411
echo "- **Run Time:** $(printf '%02dh:%02dm:%02ds\n' $((runtime/3600)) $((runtime%3600/60)) $((runtime%60)))" >> $GITHUB_STEP_SUMMARY
412-
412+
413413
echo "" >> $GITHUB_STEP_SUMMARY
414414
echo "## Client Configuration" >> $GITHUB_STEP_SUMMARY
415415
cat ./temp/clients_summary.txt >> $GITHUB_STEP_SUMMARY
416416
echo "" >> $GITHUB_STEP_SUMMARY
417-
417+
418418
echo "## Failed Test" >> $GITHUB_STEP_SUMMARY
419419
if [ -z "${{ steps.test_result.outputs.result }}" ]; then
420420
echo "kurtosis testnet failed during startup" >> $GITHUB_STEP_SUMMARY
@@ -465,7 +465,7 @@ jobs:
465465
echo "**Clients:**" >> ./temp/notification_text.txt
466466
cat ./temp/clients_summary.txt >> ./temp/notification_text.txt
467467
echo "" >> ./temp/notification_text.txt
468-
468+
469469
echo "**Failed Test:**" >> ./temp/notification_text.txt
470470
if [ -z "${{ steps.test_result.outputs.result }}" ]; then
471471
echo "kurtosis testnet failed during startup" >> ./temp/notification_text.txt
@@ -491,9 +491,14 @@ jobs:
491491
fi
492492
493493
echo "Resolve job_id..."
494-
jobs=$(gh api "repos/${{ github.repository }}/actions/runs/${{ github.run_id}}/attempts/${{ github.run_attempt }}/jobs")
495-
job_id=$(echo $jobs | jq -r '.jobs[] | select(.runner_name=="${{ runner.name }}") | .id')
496-
job_url="https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id}}/job/${job_id}"
494+
job_id=$(gh run view ${{ github.run_id }} --json jobs --jq '.jobs[] | select(.name=="${{ github.job }}") | .id')
495+
496+
if [ -z "$job_id" ]; then
497+
echo "⚠️ Job ID not found, using default run URL"
498+
job_url="https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}"
499+
else
500+
job_url="https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}/job/${job_id}"
501+
fi
497502
498503
echo "Generate discord message..."
499504
msgjson="{}"

.github/workflows/run-manual.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929
has_docker_tests: ${{ steps.tests.outputs.has_docker_tests }}
3030
steps:
3131
- name: Checkout Repository
32-
uses: actions/checkout@v4
32+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
3333
- name: "Load test configurations from tests.yaml"
3434
id: tests
3535
shell: bash

.github/workflows/run-scheduled.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
has_docker_tests: ${{ steps.tests.outputs.has_docker_tests }}
1919
steps:
2020
- name: Checkout Repository
21-
uses: actions/checkout@v4
21+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
2222
- name: "Load test configurations from tests.yaml"
2323
id: tests
2424
shell: bash

0 commit comments

Comments
 (0)