Skip to content

Commit 3469c60

Browse files
authored
ci: update of files from global .github repo (#494)
1 parent 4903ec5 commit 3469c60

19 files changed

Lines changed: 69 additions & 68 deletions

.github/workflows/add-good-first-issue-labels.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,13 @@ permissions: {}
1414
jobs:
1515
add-labels:
1616
name: Add 'Good First Issue' and 'area/*' labels
17-
if: ${{(!github.event.issue.pull_request && github.event.issue.state != 'closed' && github.actor != 'asyncapi-bot') && (contains(github.event.comment.body, '/good-first-issue') || contains(github.event.comment.body, '/gfi' ))}}
17+
if: ${{(!github.event.issue.pull_request && github.event.issue.state != 'closed' && github.event.comment.user.login != 'asyncapi-bot') && (contains(github.event.comment.body, '/good-first-issue') || contains(github.event.comment.body, '/gfi' ))}}
1818
runs-on: ubuntu-latest
1919
permissions:
2020
issues: write # This is needed to add labels to issues.
2121
steps:
2222
- name: Add label
23-
uses: actions/github-script@v7
23+
uses: actions/github-script@f28e40c7f34bde8b3046d885e986cb6290c5673b # v7
2424
with:
2525
github-token: ${{ github.token }}
2626
script: |

.github/workflows/automerge-for-humans-add-ready-to-merge-or-do-not-merge-label.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
if: >
2525
github.event.issue.pull_request &&
2626
github.event.issue.state != 'closed' &&
27-
github.actor != 'asyncapi-bot' &&
27+
github.event.comment.user.login != 'asyncapi-bot' &&
2828
(
2929
contains(github.event.comment.body, '/ready-to-merge') ||
3030
contains(github.event.comment.body, '/rtm' )
@@ -33,7 +33,7 @@ jobs:
3333
runs-on: ubuntu-latest
3434
steps:
3535
- name: Add ready-to-merge label
36-
uses: actions/github-script@v7
36+
uses: actions/github-script@f28e40c7f34bde8b3046d885e986cb6290c5673b # v7
3737
env:
3838
GITHUB_ACTOR: ${{ github.actor }}
3939
with:
@@ -86,15 +86,15 @@ jobs:
8686
if: >
8787
github.event.issue.pull_request &&
8888
github.event.issue.state != 'closed' &&
89-
github.actor != 'asyncapi-bot' &&
89+
github.event.comment.user.login != 'asyncapi-bot' &&
9090
(
9191
contains(github.event.comment.body, '/do-not-merge') ||
9292
contains(github.event.comment.body, '/dnm' )
9393
)
9494
runs-on: ubuntu-latest
9595
steps:
9696
- name: Add do-not-merge label
97-
uses: actions/github-script@v7
97+
uses: actions/github-script@f28e40c7f34bde8b3046d885e986cb6290c5673b # v7
9898
with:
9999
# Bot PAT so the `labeled` event can trigger downstream workflows.
100100
github-token: ${{ secrets.GH_TOKEN }}
@@ -113,15 +113,15 @@ jobs:
113113
if: >
114114
github.event.issue.pull_request &&
115115
github.event.issue.state != 'closed' &&
116-
github.actor != 'asyncapi-bot' &&
116+
github.event.comment.user.login != 'asyncapi-bot' &&
117117
(
118118
contains(github.event.comment.body, '/autoupdate') ||
119119
contains(github.event.comment.body, '/au' )
120120
)
121121
runs-on: ubuntu-latest
122122
steps:
123123
- name: Add autoupdate label
124-
uses: actions/github-script@v7
124+
uses: actions/github-script@f28e40c7f34bde8b3046d885e986cb6290c5673b # v7
125125
with:
126126
# Bot PAT so the `labeled` event can trigger the autoupdate workflow.
127127
github-token: ${{ secrets.GH_TOKEN }}

.github/workflows/automerge-for-humans-merging.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ jobs:
3232
steps:
3333
- name: Get PR authors
3434
id: authors
35-
uses: actions/github-script@v7
35+
uses: actions/github-script@f28e40c7f34bde8b3046d885e986cb6290c5673b # v7
3636
with:
3737
script: |
3838
// Get paginated list of all commits in the PR
@@ -71,7 +71,7 @@ jobs:
7171
7272
- name: Create commit message
7373
id: create-commit-message
74-
uses: actions/github-script@v7
74+
uses: actions/github-script@f28e40c7f34bde8b3046d885e986cb6290c5673b # v7
7575
env:
7676
AUTHORS_JSON: ${{ steps.authors.outputs.result }}
7777
with:

.github/workflows/automerge-for-humans-remove-ready-to-merge-label-on-edit.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,11 @@ jobs:
1818
name: Remove ready-to-merge label
1919
runs-on: ubuntu-latest
2020
permissions:
21+
issues: write # required to remove labels and post comments on PR issues
2122
pull-requests: write # required to remove labels and post comments on PR issues
2223
steps:
2324
- name: Remove label
24-
uses: actions/github-script@v7
25+
uses: actions/github-script@f28e40c7f34bde8b3046d885e986cb6290c5673b # v7
2526
with:
2627
github-token: ${{ github.token }}
2728
script: |

.github/workflows/automerge-orphans.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,11 @@ jobs:
1919
runs-on: ubuntu-latest
2020
steps:
2121
- name: Checkout repository
22-
uses: actions/checkout@v4
22+
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
2323
with:
2424
persist-credentials: false
2525
- name: Get list of orphans
26-
uses: actions/github-script@v7
26+
uses: actions/github-script@f28e40c7f34bde8b3046d885e986cb6290c5673b # v7
2727
id: orphans
2828
with:
2929
github-token: ${{ github.token }}

.github/workflows/automerge.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626
github-token: "${{ secrets.GH_TOKEN_BOT_EVE }}"
2727

2828
- name: Label autoapproved
29-
uses: actions/github-script@v7
29+
uses: actions/github-script@f28e40c7f34bde8b3046d885e986cb6290c5673b # v7
3030
with:
3131
github-token: ${{ secrets.GH_TOKEN }}
3232
script: |

.github/workflows/bounty-program-commands.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929
issues: write # required to post a comment on the issue/PR
3030
pull-requests: write # required to post a comment on the issue/PR if it's a PR
3131
if: >
32-
!contains(fromJSON('["aeworxet","thulieblack"]'), github.actor) &&
32+
!contains(fromJSON('["aeworxet","thulieblack"]'), github.event.comment.user.login) &&
3333
(
3434
startsWith(github.event.comment.body, '/bounty' )
3535
)
@@ -38,7 +38,7 @@ jobs:
3838

3939
steps:
4040
- name: ❌ @${{github.actor}} made an unauthorized attempt to use a Bounty Program's command
41-
uses: actions/github-script@v7
41+
uses: actions/github-script@f28e40c7f34bde8b3046d885e986cb6290c5673b # v7
4242
env:
4343
ACTOR: ${{ github.actor }}
4444
with:
@@ -61,15 +61,15 @@ jobs:
6161
issues: write # required to read/create labels and add labels on the issue/PR
6262
pull-requests: write # required to read/create labels and add labels on the issue/PR
6363
if: >
64-
contains(fromJSON('["aeworxet","thulieblack"]'), github.actor) &&
64+
contains(fromJSON('["aeworxet","thulieblack"]'), github.event.comment.user.login) &&
6565
(
6666
startsWith(github.event.comment.body, '/bounty' )
6767
)
6868
6969
runs-on: ubuntu-latest
7070
steps:
7171
- name: Add label `bounty`
72-
uses: actions/github-script@v7
72+
uses: actions/github-script@f28e40c7f34bde8b3046d885e986cb6290c5673b # v7
7373
with:
7474
github-token: ${{ github.token }}
7575
script: |
@@ -105,14 +105,14 @@ jobs:
105105
issues: write # required to read/remove labels on the issue/PR
106106
pull-requests: write # required to read/remove labels on the issue/PR if it's a PR
107107
if: >
108-
contains(fromJSON('["aeworxet","thulieblack"]'), github.actor) &&
108+
contains(fromJSON('["aeworxet","thulieblack"]'), github.event.comment.user.login) &&
109109
(
110110
startsWith(github.event.comment.body, '/unbounty' )
111111
)
112112
runs-on: ubuntu-latest
113113
steps:
114114
- name: Remove label `bounty`
115-
uses: actions/github-script@v7
115+
uses: actions/github-script@f28e40c7f34bde8b3046d885e986cb6290c5673b # v7
116116
with:
117117
github-token: ${{ github.token }}
118118
script: |

.github/workflows/bump.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
runs-on: ubuntu-latest
2424
steps:
2525
- name: Checkout repo
26-
uses: actions/checkout@v4
26+
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
2727
with:
2828
persist-credentials: false
2929
- name: Check if Node.js project and has package.json

.github/workflows/help-command.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,13 @@ permissions: {}
1313
jobs:
1414
create_help_comment_pr:
1515
name: Help Comment in PR
16-
if: ${{ github.event.issue.pull_request && startsWith(github.event.comment.body, '/help') && github.actor != 'asyncapi-bot' }}
16+
if: ${{ github.event.issue.pull_request && startsWith(github.event.comment.body, '/help') && github.event.comment.user.login != 'asyncapi-bot' }}
1717
runs-on: ubuntu-latest
1818
permissions:
1919
pull-requests: write # To comment on Pull requests
2020
steps:
2121
- name: Add comment to PR
22-
uses: actions/github-script@v7
22+
uses: actions/github-script@f28e40c7f34bde8b3046d885e986cb6290c5673b # v7
2323
env:
2424
ACTOR: ${{ github.actor }}
2525
with:
@@ -47,13 +47,13 @@ jobs:
4747

4848
create_help_comment_issue:
4949
name: Help Comment in Issue
50-
if: ${{ !github.event.issue.pull_request && startsWith(github.event.comment.body, '/help') && github.actor != 'asyncapi-bot' }}
50+
if: ${{ !github.event.issue.pull_request && startsWith(github.event.comment.body, '/help') && github.event.comment.user.login != 'asyncapi-bot' }}
5151
runs-on: ubuntu-latest
5252
permissions:
5353
issues: write # To comment on Issues
5454
steps:
5555
- name: Add comment to Issue
56-
uses: actions/github-script@v7
56+
uses: actions/github-script@f28e40c7f34bde8b3046d885e986cb6290c5673b # v7
5757
env:
5858
ACTOR: ${{ github.actor }}
5959
with:

.github/workflows/if-nodejs-pr-testing.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ jobs:
4545
shell: bash
4646
- if: steps.should_run.outputs.shouldrun == 'true'
4747
name: Checkout repository
48-
uses: actions/checkout@v4
48+
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
4949
with:
5050
persist-credentials: false
5151
- if: steps.should_run.outputs.shouldrun == 'true'
@@ -62,7 +62,7 @@ jobs:
6262
id: lockversion
6363
- if: steps.packagejson.outputs.exists == 'true'
6464
name: Setup Node.js
65-
uses: actions/setup-node@v4
65+
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4
6666
with:
6767
node-version: "${{ steps.lockversion.outputs.version }}"
6868
- if: steps.lockversion.outputs.version == '18' && matrix.os == 'windows-latest'

0 commit comments

Comments
 (0)