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="{}"
0 commit comments