Skip to content

Commit 00a4ee5

Browse files
Merge branch 'main' into ci-deno-version-2.x
2 parents 537bb9e + 8bf1dd2 commit 00a4ee5

File tree

4 files changed

+44
-23
lines changed

4 files changed

+44
-23
lines changed

.github/workflows/deno.yml

Lines changed: 16 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,11 @@ name: Deno Format, Lint and Unit Tests
22

33
on:
44
push:
5-
branches: [main]
5+
branches:
6+
- main
67
pull_request:
7-
branches: [main]
8+
branches:
9+
- main
810

911
jobs:
1012
test:
@@ -17,19 +19,23 @@ jobs:
1719
- v1.x
1820
- v1.46.2
1921
- v2.x
22+
permissions:
23+
contents: read
2024
steps:
2125
- name: Setup repo
22-
uses: actions/checkout@v4
26+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
27+
with:
28+
persist-credentials: false
2329
- name: Setup Deno
24-
uses: denoland/setup-deno@v2
30+
uses: denoland/setup-deno@e95548e56dfa95d4e1a28d6f422fafe75c4c26fb # v2.0.3
2531
with:
2632
deno-version: ${{ matrix.deno-version }}
2733
- name: Run formatter, linter and tests
2834
run: deno task test
2935
- name: Generate CodeCov-friendly coverage report
3036
run: deno task generate-lcov
3137
- name: Upload coverage to CodeCov
32-
uses: codecov/codecov-action@v5
38+
uses: codecov/codecov-action@18283e04ce6e62d37312384ff67231eb8fd56d24 # v5.4.3
3339
with:
3440
files: ./lcov.info
3541
token: ${{ secrets.CODECOV_TOKEN }}
@@ -38,12 +44,15 @@ jobs:
3844
needs: test
3945
permissions:
4046
checks: write
47+
contents: read
4148
runs-on: ubuntu-latest
4249
steps:
4350
- name: Setup repo
44-
uses: actions/checkout@v4
51+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
52+
with:
53+
persist-credentials: false
4554
- name: Report health score
46-
uses: slackapi/slack-health-score@v0
55+
uses: slackapi/slack-health-score@d58a419f15cdaff97e9aa7f09f95772830ab66f7 # v0.1.1
4756
with:
4857
codecov_token: ${{ secrets.FILS_CODECOV_API_TOKEN }}
4958
github_token: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/npm.yml

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,26 +4,31 @@ name: NPM Build
44

55
on:
66
push:
7-
branches: [ main ]
7+
branches:
8+
- main
89
pull_request:
9-
branches: [ main ]
10+
branches:
11+
- main
1012

1113
jobs:
1214
build:
1315
runs-on: macos-latest
14-
16+
permissions:
17+
contents: read
1518
steps:
1619
- name: Actions checkout
17-
uses: actions/checkout@v4
20+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
21+
with:
22+
persist-credentials: false
1823

1924
- name: Setup node
20-
uses: actions/setup-node@v4
25+
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
2126
with:
2227
node-version: latest
2328
registry-url: https://registry.npmjs.org/
2429

2530
- name: Setup Deno
26-
uses: denoland/setup-deno@v2
31+
uses: denoland/setup-deno@e95548e56dfa95d4e1a28d6f422fafe75c4c26fb # v2.0.3
2732
with:
2833
deno-version: v1.x
2934

.github/workflows/publish.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,16 @@ name: Publish
33
on:
44
push:
55
tags:
6-
- '*'
6+
- "*"
77

88
jobs:
99
publish:
1010
runs-on: ubuntu-latest
1111
permissions:
1212
contents: read
13-
id-token: write # The OIDC ID token is used for authentication with JSR.
13+
id-token: write # The OIDC ID token is used for authentication with JSR.
1414
steps:
15-
- uses: actions/checkout@v4
16-
- run: npx jsr publish
15+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
16+
with:
17+
persist-credentials: false
18+
- run: npx jsr publish

.github/workflows/samples.yml

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,11 @@ name: Samples Integration Type-checking
33

44
on:
55
push:
6-
branches: [main]
6+
branches:
7+
- main
78
pull_request:
8-
branches: [main]
9+
branches:
10+
- main
911

1012
jobs:
1113
samples:
@@ -26,22 +28,25 @@ jobs:
2628
- v1.x
2729
- v1.45.4
2830
- v2.x
29-
31+
permissions:
32+
contents: read
3033
steps:
3134
- name: Setup Deno ${{ matrix.deno-version }}
32-
uses: denoland/setup-deno@v2
35+
uses: denoland/setup-deno@e95548e56dfa95d4e1a28d6f422fafe75c4c26fb # v2.0.3
3336
with:
3437
deno-version: ${{ matrix.deno-version }}
3538

3639
- name: Checkout the api
37-
uses: actions/checkout@v4
40+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
3841
with:
3942
path: ./deno-slack-api
43+
persist-credentials: false
4044
- name: Checkout the ${{ matrix.sample }} sample
41-
uses: actions/checkout@v4
45+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
4246
with:
4347
repository: ${{ matrix.sample }}
4448
path: ./sample
49+
persist-credentials: false
4550

4651
- name: Set imports.deno-slack-api/ to ../deno-slack-api/src/ in imports
4752
run: >

0 commit comments

Comments
 (0)