@@ -293,7 +293,7 @@ jobs:
293293 security-events : write
294294 runs-on : *ci-runner
295295 steps :
296- - uses : hoverkraft-tech/ci-github-common/actions/checkout@5e8d0e6d1e76d8577a070db6d0128a91b1c9d5ad # 0.30.2
296+ - uses : hoverkraft-tech/ci-github-common/actions/checkout@e6733528d06b6e1668674c35ef3612ac416cedda # 0.31.1
297297 - uses : github/codeql-action/init@fdbfb4d2750291e159f0156def62b853c2798ca2 # v4.31.5
298298 with :
299299 languages : ${{ inputs.code-ql }}
@@ -306,7 +306,7 @@ jobs:
306306 contents : read
307307 runs-on : *ci-runner
308308 steps :
309- - uses : hoverkraft-tech/ci-github-common/actions/checkout@5e8d0e6d1e76d8577a070db6d0128a91b1c9d5ad # 0.30.2
309+ - uses : hoverkraft-tech/ci-github-common/actions/checkout@e6733528d06b6e1668674c35ef3612ac416cedda # 0.31.1
310310 - uses : actions/dependency-review-action@3c4e3dcb1aa7874d2c16be7d79418e9b7efd6261 # v4.8.2
311311
312312 setup :
@@ -334,7 +334,7 @@ jobs:
334334 steps :
335335 - name : Checkout repository
336336 if : inputs.container == ''
337- uses : hoverkraft-tech/ci-github-common/actions/checkout@5e8d0e6d1e76d8577a070db6d0128a91b1c9d5ad # 0.30.2
337+ uses : hoverkraft-tech/ci-github-common/actions/checkout@e6733528d06b6e1668674c35ef3612ac416cedda # 0.31.1
338338
339339 - id : working-directory
340340 uses : actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0
@@ -458,24 +458,15 @@ jobs:
458458 permissions :
459459 contents : read
460460 packages : read
461- # FIXME: This is a workaround for having workflow ref. See https://github.com/orgs/community/discussions/38659
462- id-token : write
461+ id-token : write # Needed for getting local workflow actions
463462 steps :
464- - uses : hoverkraft-tech/ci-github-common/actions/checkout@5e8d0e6d1e76d8577a070db6d0128a91b1c9d5ad # 0.30.2
463+ - uses : hoverkraft-tech/ci-github-common/actions/checkout@e6733528d06b6e1668674c35ef3612ac416cedda # 0.31.1
465464 if : inputs.container == ''
466465
467- - id : oidc
468- uses : ChristopherHX/oidc@73eee1ff03fdfce10eda179f617131532209edbd # v3
469- - uses : actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0
466+ - id : local-workflow-actions
467+ uses : hoverkraft-tech/ci-github-common/actions/local-workflow-actions@e6733528d06b6e1668674c35ef3612ac416cedda # 0.31.1
470468 with :
471- path : ./self-workflow
472- repository : ${{ steps.oidc.outputs.job_workflow_repo_name_and_owner }}
473- ref : ${{ steps.oidc.outputs.job_workflow_repo_ref }}
474- sparse-checkout : |
475- actions
476- - run : |
477- if [ -f .gitignore ]; then grep -q "self-workflow" .gitignore || echo "self-workflow" >> .gitignore; else echo "self-workflow" >> .gitignore; fi
478- if [ -f .dockerignore ]; then grep -q "self-workflow" .dockerignore || echo "self-workflow" >> .dockerignore; else echo "self-workflow" >> .dockerignore; fi
469+ actions-path : actions
479470
480471 - id : preparel-lint-options
481472 uses : actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0
@@ -508,6 +499,15 @@ jobs:
508499 report-file : ${{ steps.preparel-lint-options.outputs.report-file }}
509500 path-mapping : ${{ needs.prepare.outputs.path-mapping || '' }}
510501
502+ # jscpd:ignore-start
503+ - uses : hoverkraft-tech/ci-github-common/actions/local-workflow-actions@e6733528d06b6e1668674c35ef3612ac416cedda # 0.31.1
504+ if : always() && steps.local-workflow-actions.outputs.repository
505+ with :
506+ actions-path : actions
507+ repository : ${{ steps.local-workflow-actions.outputs.repository }}
508+ ref : ${{ steps.local-workflow-actions.outputs.ref }}
509+ # jscpd:ignore-end
510+
511511 build :
512512 if : inputs.checks == true
513513 name : 🏗️ Build
@@ -519,30 +519,17 @@ jobs:
519519 permissions :
520520 contents : read
521521 packages : read
522- # FIXME: This is a workaround for having workflow ref. See https://github.com/orgs/community/discussions/38659
523- id-token : write
522+ id-token : write # Needed for getting local workflow actions
524523 outputs :
525524 artifact-id : ${{ steps.build.outputs.artifact-id }}
526525 steps :
527- - uses : hoverkraft-tech/ci-github-common/actions/checkout@5e8d0e6d1e76d8577a070db6d0128a91b1c9d5ad # 0.30.2
526+ - uses : hoverkraft-tech/ci-github-common/actions/checkout@e6733528d06b6e1668674c35ef3612ac416cedda # 0.31.1
528527 if : needs.setup.outputs.build-commands && inputs.container == ''
529528
530- # FIXME: This is a workaround for having workflow ref. See https://github.com/orgs/community/discussions/38659
531- - id : oidc
532- if : needs.setup.outputs.build-commands
533- uses : ChristopherHX/oidc@73eee1ff03fdfce10eda179f617131532209edbd # v3
534- - uses : actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0
535- if : needs.setup.outputs.build-commands
529+ - id : local-workflow-actions
530+ uses : hoverkraft-tech/ci-github-common/actions/local-workflow-actions@e6733528d06b6e1668674c35ef3612ac416cedda # 0.31.1
536531 with :
537- path : ./self-workflow
538- repository : ${{ steps.oidc.outputs.job_workflow_repo_name_and_owner }}
539- ref : ${{ steps.oidc.outputs.job_workflow_repo_ref }}
540- sparse-checkout : |
541- actions
542- - if : needs.setup.outputs.build-commands
543- run : |
544- if [ -f .gitignore ]; then grep -q "self-workflow" .gitignore || echo "self-workflow" >> .gitignore; else echo "self-workflow" >> .gitignore; fi
545- if [ -f .dockerignore ]; then grep -q "self-workflow" .dockerignore || echo "self-workflow" >> .dockerignore; else echo "self-workflow" >> .dockerignore; fi
532+ actions-path : actions
546533
547534 - id : build
548535 if : needs.setup.outputs.build-commands
@@ -555,6 +542,15 @@ jobs:
555542 build-env : ${{ needs.setup.outputs.build-env }}
556543 build-artifact : ${{ needs.setup.outputs.build-artifact }}
557544
545+ # jscpd:ignore-start
546+ - uses : hoverkraft-tech/ci-github-common/actions/local-workflow-actions@e6733528d06b6e1668674c35ef3612ac416cedda # 0.31.1
547+ if : always() && steps.local-workflow-actions.outputs.repository
548+ with :
549+ actions-path : actions
550+ repository : ${{ steps.local-workflow-actions.outputs.repository }}
551+ ref : ${{ steps.local-workflow-actions.outputs.ref }}
552+ # jscpd:ignore-end
553+
558554 test :
559555 if : inputs.checks == true && inputs.test
560556 name : 🧪 Test
@@ -568,10 +564,9 @@ jobs:
568564 contents : read
569565 pull-requests : write
570566 packages : read
571- # FIXME: This is a workaround for having workflow ref. See https://github.com/orgs/community/discussions/38659
572- id-token : write
567+ id-token : write # Needed for getting local workflow actions
573568 steps :
574- - uses : hoverkraft-tech/ci-github-common/actions/checkout@5e8d0e6d1e76d8577a070db6d0128a91b1c9d5ad # 0.30.2
569+ - uses : hoverkraft-tech/ci-github-common/actions/checkout@e6733528d06b6e1668674c35ef3612ac416cedda # 0.31.1
575570 if : inputs.container == ''
576571
577572 - if : needs.build.outputs.artifact-id && inputs.container == ''
@@ -580,19 +575,10 @@ jobs:
580575 artifact-ids : ${{ needs.build.outputs.artifact-id }}
581576 path : " /"
582577
583- # FIXME: This is a workaround for having workflow ref. See https://github.com/orgs/community/discussions/38659
584- - id : oidc
585- uses : ChristopherHX/oidc@73eee1ff03fdfce10eda179f617131532209edbd # v3
586- - uses : actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0
578+ - id : local-workflow-actions
579+ uses : hoverkraft-tech/ci-github-common/actions/local-workflow-actions@e6733528d06b6e1668674c35ef3612ac416cedda # 0.31.1
587580 with :
588- path : ./self-workflow
589- repository : ${{ steps.oidc.outputs.job_workflow_repo_name_and_owner }}
590- ref : ${{ steps.oidc.outputs.job_workflow_repo_ref }}
591- sparse-checkout : |
592- actions
593- - run : |
594- if [ -f .gitignore ]; then grep -q "self-workflow" .gitignore || echo "self-workflow" >> .gitignore; else echo "self-workflow" >> .gitignore; fi
595- if [ -f .dockerignore ]; then grep -q "self-workflow" .dockerignore || echo "self-workflow" >> .dockerignore; else echo "self-workflow" >> .dockerignore; fi
581+ actions-path : actions
596582
597583 - id : prepare-test-options
598584 uses : actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0
@@ -630,3 +616,12 @@ jobs:
630616 report-file : ${{ steps.prepare-test-options.outputs.report-file }}
631617 path-mapping : ${{ needs.prepare.outputs.path-mapping || '' }}
632618 github-token : ${{ secrets.github-token || github.token }}
619+
620+ # jscpd:ignore-start
621+ - uses : hoverkraft-tech/ci-github-common/actions/local-workflow-actions@e6733528d06b6e1668674c35ef3612ac416cedda # 0.31.1
622+ if : always() && steps.local-workflow-actions.outputs.repository
623+ with :
624+ actions-path : actions
625+ repository : ${{ steps.local-workflow-actions.outputs.repository }}
626+ ref : ${{ steps.local-workflow-actions.outputs.ref }}
627+ # jscpd:ignore-end
0 commit comments