2626 COVERAGE_SUMMARY_INPUT_FILE : ' ./test/input-files/coverage-summary.md'
2727 TRUNCATE_SUMMARY_INPUT_FILE : ' ./test/input-files/truncate.md'
2828
29+ permissions :
30+ contents : write
31+ pull-requests : write
32+
2933jobs :
3034 build-and-review-pr :
3135 # This reusable workflow will check to see if an action's source code has changed based on
3943 # This workflow assumes:
4044 # - The main README.md is at the root of the repo
4145 # - The README contains a contribution guidelines and usage examples section
42- uses : im-open/.github/.github/workflows/reusable-build-and-review-pr.yml@v1
46+ uses : im-open/.github/.github/workflows/reusable-build-and-review-pr.yml@v2
4347 with :
4448 action-name : ${{ github.repository }}
4549 default-branch : main
8286 run : echo ""
8387
8488 - name : Setup - Checkout the action
85- uses : actions/checkout@v4
89+ uses : actions/checkout@v7
8690
8791 - name : ' -------------------------------------------------------------------------------------------------------------'
8892 run : echo ""
@@ -493,7 +497,7 @@ jobs:
493497 fi
494498
495499 - name : Setup - Checkout the action
496- uses : actions/checkout@v4
500+ uses : actions/checkout@v7
497501
498502 - name : ' -------------------------------------------------------------------------------------------------------------'
499503 run : echo ""
@@ -529,12 +533,12 @@ jobs:
529533
530534 - name : 10e - And the status check should match the inputs
531535 if : always()
532- uses : actions/github-script@v7
536+ uses : actions/github-script@v9
533537 with :
534538 script : |
535539 const fs = require('fs');
536- const assertStatusCheckExists = require('./test/assert-status-check-exists.js ');
537- const assertStatusCheckMatchesExpectations = require('./test/assert-status-check-matches-expectations.js ');
540+ const assertStatusCheckExists = require('./test/assert-status-check-exists.cjs ');
541+ const assertStatusCheckMatchesExpectations = require('./test/assert-status-check-matches-expectations.cjs ');
538542
539543 const checkId = '${{ steps.no-failures.outputs.status-check-id }}';
540544 const actualCheck = await assertStatusCheckExists(github, context, core, checkId);
@@ -583,12 +587,12 @@ jobs:
583587
584588 - name : 11e - And the status check should match the inputs
585589 if : always()
586- uses : actions/github-script@v7
590+ uses : actions/github-script@v9
587591 with :
588592 script : |
589593 const fs = require('fs');
590- const assertStatusCheckExists = require('./test/assert-status-check-exists.js ');
591- const assertStatusCheckMatchesExpectations = require('./test/assert-status-check-matches-expectations.js ');
594+ const assertStatusCheckExists = require('./test/assert-status-check-exists.cjs ');
595+ const assertStatusCheckMatchesExpectations = require('./test/assert-status-check-matches-expectations.cjs ');
592596
593597 const checkId = '${{ steps.ignore-failures.outputs.status-check-id }}';
594598 const actualCheck = await assertStatusCheckExists(github, context, core, checkId);
@@ -637,12 +641,12 @@ jobs:
637641
638642 - name : 12e - And the status check should match the inputs
639643 if : always()
640- uses : actions/github-script@v7
644+ uses : actions/github-script@v9
641645 with :
642646 script : |
643647 const fs = require('fs');
644- const assertStatusCheckExists = require('./test/assert-status-check-exists.js ');
645- const assertStatusCheckMatchesExpectations = require('./test/assert-status-check-matches-expectations.js ');
648+ const assertStatusCheckExists = require('./test/assert-status-check-exists.cjs ');
649+ const assertStatusCheckMatchesExpectations = require('./test/assert-status-check-matches-expectations.cjs ');
646650
647651 const checkId = '${{ steps.allow-failures.outputs.status-check-id }}';
648652 const actualCheck = await assertStatusCheckExists(github, context, core, checkId);
@@ -691,12 +695,12 @@ jobs:
691695
692696 - name : 13e - And the status check should match the inputs
693697 if : always()
694- uses : actions/github-script@v7
698+ uses : actions/github-script@v9
695699 with :
696700 script : |
697701 const fs = require('fs');
698- const assertStatusCheckExists = require('./test/assert-status-check-exists.js ');
699- const assertStatusCheckMatchesExpectations = require('./test/assert-status-check-matches-expectations.js ');
702+ const assertStatusCheckExists = require('./test/assert-status-check-exists.cjs ');
703+ const assertStatusCheckMatchesExpectations = require('./test/assert-status-check-matches-expectations.cjs ');
700704
701705 const checkId = '${{ steps.threshold-0.outputs.status-check-id }}';
702706 const actualCheck = await assertStatusCheckExists(github, context, core, checkId);
@@ -718,11 +722,11 @@ jobs:
718722
719723 - name : Teardown - Modify failing Status Check conclusion
720724 if : always()
721- uses : actions/github-script@v7
725+ uses : actions/github-script@v9
722726 with :
723727 script : |
724728 const fs = require('fs');
725- const updateFailingStatusCheck = require('./test/update-failing-status-check.js ');
729+ const updateFailingStatusCheck = require('./test/update-failing-status-check.cjs ');
726730
727731 await updateFailingStatusCheck(github, context, core, '${{ steps.allow-failures.outputs.status-check-id }}');
728732
@@ -760,19 +764,19 @@ jobs:
760764 fi
761765
762766 - name : Setup - Checkout the action
763- uses : actions/checkout@v4
767+ uses : actions/checkout@v7
764768
765769 - name : Setup - Delete pre-existing process-code-coverage-summary PR Comments
766770 if : always()
767- uses : actions/github-script@v7
771+ uses : actions/github-script@v9
768772 with :
769773 script : |
770- const deletePrComments = require('./test/delete-pre-existing-comments.js ');
774+ const deletePrComments = require('./test/delete-pre-existing-comments.cjs ');
771775 await deletePrComments(github, context, core);
772776
773777 - name : Setup - Create a process-code-coverage-summary comment that can be updated
774778 if : always()
775- uses : actions/github-script@v7
779+ uses : actions/github-script@v9
776780 with :
777781 script : |
778782 await github.rest.issues.createComment({
@@ -825,12 +829,12 @@ jobs:
825829
826830 - name : 14e - And the pr-comment should match the match the expected values
827831 if : always()
828- uses : actions/github-script@v7
832+ uses : actions/github-script@v9
829833 with :
830834 script : |
831835 const fs = require('fs');
832- const assertCommentExists = require('./test/assert-pr-comment-exists.js ');
833- const assertCommentMatchesExpectations = require('./test/assert-pr-comment-matches-expectations.js ');
836+ const assertCommentExists = require('./test/assert-pr-comment-exists.cjs ');
837+ const assertCommentMatchesExpectations = require('./test/assert-pr-comment-matches-expectations.cjs ');
834838
835839 const commentId = '${{ steps.update-with-matching-prefix.outputs.pr-comment-id }}';
836840 const actualComment = await assertCommentExists(github, context, core, commentId);
@@ -881,12 +885,12 @@ jobs:
881885
882886 - name : 15e - And the pr-comment should match the expected values
883887 if : always()
884- uses : actions/github-script@v7
888+ uses : actions/github-script@v9
885889 with :
886890 script : |
887891 const fs = require('fs');
888- const assertCommentExists = require('./test/assert-pr-comment-exists.js ');
889- const assertCommentMatchesExpectations = require('./test/assert-pr-comment-matches-expectations.js ');
892+ const assertCommentExists = require('./test/assert-pr-comment-exists.cjs ');
893+ const assertCommentMatchesExpectations = require('./test/assert-pr-comment-matches-expectations.cjs ');
890894
891895 const commentId = '${{ steps.update-without-matching-prefix.outputs.pr-comment-id }}';
892896 const actualComment = await assertCommentExists(github, context, core, commentId);
@@ -937,12 +941,12 @@ jobs:
937941
938942 - name : 16e - And the pr-comment should match the expected values
939943 if : always()
940- uses : actions/github-script@v7
944+ uses : actions/github-script@v9
941945 with :
942946 script : |
943947 const fs = require('fs');
944- const assertCommentExists = require('./test/assert-pr-comment-exists.js ');
945- const assertCommentMatchesExpectations = require('./test/assert-pr-comment-matches-expectations.js ');
948+ const assertCommentExists = require('./test/assert-pr-comment-exists.cjs ');
949+ const assertCommentMatchesExpectations = require('./test/assert-pr-comment-matches-expectations.cjs ');
946950
947951 const commentId = '${{ steps.matching-prefix-no-update.outputs.pr-comment-id }}';
948952 const actualComment = await assertCommentExists(github, context, core, commentId);
@@ -993,12 +997,12 @@ jobs:
993997
994998 - name : 17e - And the pr-comment should match the expected values
995999 if : always()
996- uses : actions/github-script@v7
1000+ uses : actions/github-script@v9
9971001 with :
9981002 script : |
9991003 const fs = require('fs');
1000- const assertCommentExists = require('./test/assert-pr-comment-exists.js ');
1001- const assertCommentMatchesExpectations = require('./test/assert-pr-comment-matches-expectations.js ');
1004+ const assertCommentExists = require('./test/assert-pr-comment-exists.cjs ');
1005+ const assertCommentMatchesExpectations = require('./test/assert-pr-comment-matches-expectations.cjs ');
10021006
10031007 const commentId = '${{ steps.truncate.outputs.pr-comment-id }}';
10041008 const actualComment = await assertCommentExists(github, context, core, commentId);
@@ -1024,11 +1028,11 @@ jobs:
10241028
10251029 - name : Teardown - Delete PR Comments
10261030 if : always()
1027- uses : actions/github-script@v7
1031+ uses : actions/github-script@v9
10281032 with :
10291033 script : |
10301034 const fs = require('fs');
1031- const deletePrComment = require('./test/delete-pr-comment.js ');
1035+ const deletePrComment = require('./test/delete-pr-comment.cjs ');
10321036
10331037 await deletePrComment(github, context, core, '${{ env.EXISTING_COMMENT_ID }}');
10341038 await deletePrComment(github, context, core, '${{ steps.matching-prefix-no-update.outputs.pr-comment-id }}');
0 commit comments