75
75
TAG : ${{ steps.versionist.outputs.tag }}
76
76
MESSAGE : ${{ steps.versionist.outputs.tag }}
77
77
SHA : ${{ steps.create_commit.outputs.sha }}
78
- uses : actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7
78
+ uses : actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1
79
79
with :
80
80
github-token : ${{ steps.gh_app_token.outputs.token || secrets.FLOWZONE_TOKEN }}
81
81
result-encoding : json
98
98
env :
99
99
REF : " heads/${{ github.base_ref }}"
100
100
SHA : ${{ steps.create_commit.outputs.sha }}
101
- uses : actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7
101
+ uses : actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1
102
102
with :
103
103
github-token : ${{ steps.gh_app_token.outputs.token || secrets.FLOWZONE_TOKEN }}
104
104
result-encoding : json
118
118
env :
119
119
REF : " refs/tags/${{ steps.versionist.outputs.tag }}"
120
120
SHA : ${{ steps.create_tag.outputs.sha }}
121
- uses : actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7
121
+ uses : actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1
122
122
with :
123
123
github-token : ${{ steps.gh_app_token.outputs.token || secrets.FLOWZONE_TOKEN }}
124
124
result-encoding : json
338
338
339
339
- &jsonArrayBuilder
340
340
name : Build JSON list from comma-separated input
341
- uses : actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7
341
+ uses : actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1
342
342
with :
343
343
result-encoding : json
344
344
script : |
350
350
351
351
- &newlineListBuilder
352
352
name : Build newline-separated list from JSON list input
353
- uses : actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7
353
+ uses : actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1
354
354
with :
355
355
result-encoding : string
356
356
script : |
374
374
375
375
- &sanitizeDockerStrings
376
376
name : Sanitize docker strings
377
- uses : actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7
377
+ uses : actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1
378
378
id : strings
379
379
env :
380
380
TARGET : ${{ matrix.target }}
543
543
# https://octokit.github.io/rest.js/v21/#pulls-list-commits
544
544
name : Reject HEAD branches containing merge commits
545
545
if : github.event.pull_request.state == 'open'
546
- uses : actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7
546
+ uses : actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1
547
547
with :
548
548
github-token : ${{ steps.gh_app_token.outputs.token || secrets.FLOWZONE_TOKEN }}
549
549
result-encoding : json
567
567
# This check passes when the PR is open too, but only on pull_request events and not pull_request_target.
568
568
# So only check on merged PRs where the HEAD sha should always be a parent of the merge commit.
569
569
if : github.event.pull_request.merged
570
- uses : actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7
570
+ uses : actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1
571
571
with :
572
572
github-token : ${{ steps.gh_app_token.outputs.token || secrets.FLOWZONE_TOKEN }}
573
573
result-encoding : json
@@ -1168,7 +1168,7 @@ jobs:
1168
1168
- *rejectNonLinearMerge
1169
1169
1170
1170
- name : Check for legacy branch protection
1171
- uses : actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7
1171
+ uses : actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1
1172
1172
if : inputs.app_id && inputs.disable_versioning != true && github.event.pull_request.state == 'open'
1173
1173
with :
1174
1174
github-token : ${{ steps.gh_app_token.outputs.token || secrets.FLOWZONE_TOKEN }}
@@ -1232,7 +1232,7 @@ jobs:
1232
1232
1233
1233
# https://github.com/actions/github-script
1234
1234
- name : Run balena-versionist
1235
- uses : actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7
1235
+ uses : actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1
1236
1236
if : inputs.disable_versioning != true
1237
1237
id : versionist
1238
1238
env :
@@ -1268,7 +1268,7 @@ jobs:
1268
1268
id : create_tree
1269
1269
env :
1270
1270
PARENT_COMMIT_SHA : ${{ steps.git_describe.outputs.sha }}
1271
- uses : actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7
1271
+ uses : actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1
1272
1272
with :
1273
1273
github-token : ${{ steps.gh_app_token.outputs.token || secrets.FLOWZONE_TOKEN }}
1274
1274
script : |
@@ -1332,7 +1332,7 @@ jobs:
1332
1332
MESSAGE : ${{ steps.versionist.outputs.tag }}
1333
1333
TREE_SHA : ${{ steps.create_tree.outputs.sha }}
1334
1334
PARENT_COMMIT_SHA : ${{ steps.git_describe.outputs.sha }}
1335
- uses : actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7
1335
+ uses : actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1
1336
1336
with :
1337
1337
github-token : ${{ steps.gh_app_token.outputs.token || secrets.FLOWZONE_TOKEN }}
1338
1338
result-encoding : json
@@ -1502,7 +1502,7 @@ jobs:
1502
1502
# https://docs.github.com/en/rest/commits/commits#compare-two-commits
1503
1503
- name : Generate short release note
1504
1504
id : short_release_notes
1505
- uses : actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7
1505
+ uses : actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1
1506
1506
env :
1507
1507
USER_DEFINED : ${{ steps.format_release_notes.outputs.body }}
1508
1508
CURRENT_TAG : ${{ needs.versioned_source.outputs.tag }}
@@ -1809,7 +1809,7 @@ jobs:
1809
1809
# https://octokit.github.io/rest.js/v21/#code-scanning-upload-sarif
1810
1810
# https://github.com/github/codeql-action/issues/2654
1811
1811
- name : Upload SARIF file to GitHub
1812
- uses : actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7
1812
+ uses : actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1
1813
1813
# For now let's just continue on error as this is not a critical path
1814
1814
continue-on-error : true
1815
1815
env :
@@ -1862,7 +1862,7 @@ jobs:
1862
1862
# https://octokit.github.io/rest.js/v21/#repos-get-content
1863
1863
- name : List files in project root
1864
1864
id : project-root
1865
- uses : actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7
1865
+ uses : actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1
1866
1866
with :
1867
1867
github-token : ${{ github.token }}
1868
1868
result-encoding : json
@@ -1887,7 +1887,7 @@ jobs:
1887
1887
if : inputs.working_directory && inputs.working_directory != '.'
1888
1888
env :
1889
1889
WORKING_DIRECTORY : ${{ inputs.working_directory }}
1890
- uses : actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7
1890
+ uses : actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1
1891
1891
with :
1892
1892
github-token : ${{ github.token }}
1893
1893
result-encoding : json
@@ -1989,7 +1989,7 @@ jobs:
1989
1989
- *shallowCheckout
1990
1990
1991
1991
- name : Process package.json
1992
- uses : actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7
1992
+ uses : actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1
1993
1993
id : package_json
1994
1994
with :
1995
1995
result-encoding : json
@@ -2054,7 +2054,7 @@ jobs:
2054
2054
# Default to 20.x if no versions were matched
2055
2055
# https://github.com/actions/github-script
2056
2056
- name : Set Node.js versions
2057
- uses : actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7
2057
+ uses : actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1
2058
2058
id : node_versions
2059
2059
env :
2060
2060
# Tested that this will always return a JSON array.
@@ -2137,7 +2137,7 @@ jobs:
2137
2137
# in this custom bake json we also set some default cache values, and inherit the docker-metadata-action
2138
2138
- name : Pre-process Docker bake files
2139
2139
id : docker_bake
2140
- uses : actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7
2140
+ uses : actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1
2141
2141
env :
2142
2142
TEMP_BAKE_FILE : ${{ runner.temp }}/docker-bake.json
2143
2143
BAKE_TARGETS : ${{ inputs.bake_targets }}
@@ -2262,7 +2262,7 @@ jobs:
2262
2262
- name : Build docker test matrix
2263
2263
id : docker_test
2264
2264
if : steps.docker_bake.outputs.result != ''
2265
- uses : actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7
2265
+ uses : actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1
2266
2266
env :
2267
2267
<< : *dockerPlatformSlugMap
2268
2268
BAKE_JSON : " ${{ steps.docker_bake.outputs.result }}"
@@ -2335,7 +2335,7 @@ jobs:
2335
2335
inputs.docker_images != '' &&
2336
2336
join(fromJSON(steps.docker_bake.outputs.targets)) != '' &&
2337
2337
steps.docker_bake.outputs.result != ''
2338
- uses : actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7
2338
+ uses : actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1
2339
2339
env :
2340
2340
<< : *dockerPlatformSlugMap
2341
2341
BAKE_JSON : ${{ steps.docker_bake.outputs.result }}
@@ -2708,7 +2708,7 @@ jobs:
2708
2708
contains(needs.file_list.outputs.workdir, 'aws-cf-templates.yaml') ||
2709
2709
contains(needs.file_list.outputs.workdir, 'aws-cf-templates.yml') ||
2710
2710
contains(needs.file_list.outputs.workdir, 'aws-cf-templates.json')
2711
- uses : actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7
2711
+ uses : actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1
2712
2712
with :
2713
2713
result-encoding : json
2714
2714
script : |
@@ -2755,7 +2755,7 @@ jobs:
2755
2755
- name : Validate CloudFormation input
2756
2756
id : validate_input
2757
2757
if : inputs.cloudformation_templates != '' && steps.validate_files.outputs.enabled != 'true'
2758
- uses : actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7
2758
+ uses : actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1
2759
2759
with :
2760
2760
result-encoding : json
2761
2761
script : |
@@ -2792,7 +2792,7 @@ jobs:
2792
2792
- name : Generate stacks matrix
2793
2793
id : cloudformation_stacks
2794
2794
if : steps.validate_files.outputs.enabled == 'true' || steps.validate_input.outputs.enabled == 'true'
2795
- uses : actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7
2795
+ uses : actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1
2796
2796
env :
2797
2797
BASE_SHA : ${{ github.event.pull_request.base.sha }}
2798
2798
HEAD_SHA : ${{ github.event.pull_request.head.sha || github.event.head_commit.id }}
@@ -5007,7 +5007,7 @@ jobs:
5007
5007
# Get the current state of the PR so we can check if it is in draft state
5008
5008
- name : Get the PR state
5009
5009
id : get-pr
5010
- uses : actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7
5010
+ uses : actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1
5011
5011
with :
5012
5012
result-encoding : json
5013
5013
github-token : " ${{ steps.gh_app_token.outputs.token || secrets.FLOWZONE_TOKEN }}"
@@ -5029,7 +5029,7 @@ jobs:
5029
5029
- name : Check if branch has rules
5030
5030
if : ${{ fromJSON(steps.get-pr.outputs.result).draft == false }}
5031
5031
id : get-branch-rules
5032
- uses : actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7
5032
+ uses : actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1
5033
5033
with :
5034
5034
result-encoding : json
5035
5035
github-token : " ${{ steps.gh_app_token.outputs.token || secrets.FLOWZONE_TOKEN }}"
0 commit comments