Skip to content

Commit b6abad9

Browse files
authored
Prepare new repo for CI and SDK release. (#7)
1 parent 2c651ad commit b6abad9

File tree

10 files changed

+41
-22
lines changed

10 files changed

+41
-22
lines changed

.git-blame-ignore-revs

Whitespace-only changes.

.github/workflows/devskim.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,11 @@ jobs:
1818
lint:
1919
name: DevSkim
2020
runs-on: ubuntu-latest
21-
permissions:
22-
actions: read
23-
contents: read
24-
security-events: write
2521
steps:
2622
- name: Checkout code
2723
uses: actions/checkout@v4
24+
with:
25+
token: ${{ secrets.GITHUB_TOKEN }}
2826

2927
- name: Run DevSkim scanner
3028
uses: microsoft/DevSkim-Action@v1

.github/workflows/dotnet.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ jobs:
2121
steps:
2222
- name: Checkout
2323
uses: actions/checkout@v4
24+
with:
25+
token: ${{ secrets.GITHUB_TOKEN }}
2426

2527
- name: Setup .NET environment
2628
uses: actions/setup-dotnet@v4
@@ -45,6 +47,8 @@ jobs:
4547
steps:
4648
- name: Checkout
4749
uses: actions/checkout@v4
50+
with:
51+
token: ${{ secrets.GITHUB_TOKEN }}
4852

4953
- name: Setup dotnet
5054
uses: actions/setup-dotnet@v4

.github/workflows/elixir-sdk.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ on:
44
push:
55
branches: ['main']
66
pull_request:
7-
types: [opened, reopened, synchronize, assigned, review_requested]
7+
types: [opened, synchronize]
88
paths:
99
- 'sdk/highlight-ex/**'
1010
- '.github/workflows/elixir-sdk.yml'
@@ -21,6 +21,8 @@ jobs:
2121
steps:
2222
- name: Checkout
2323
uses: actions/checkout@v4
24+
with:
25+
token: ${{ secrets.GITHUB_TOKEN }}
2426
- name: Setup Elixir
2527
uses: erlef/setup-beam@v1
2628
with:
@@ -36,6 +38,8 @@ jobs:
3638
steps:
3739
- name: Checkout
3840
uses: actions/checkout@v4
41+
with:
42+
token: ${{ secrets.GITHUB_TOKEN }}
3943
- name: Setup Elixir
4044
uses: erlef/setup-beam@v1
4145
with:
@@ -56,6 +60,8 @@ jobs:
5660
steps:
5761
- name: Checkout
5862
uses: actions/checkout@v4
63+
with:
64+
token: ${{ secrets.GITHUB_TOKEN }}
5965
- name: Setup Elixir
6066
uses: erlef/setup-beam@v1
6167
with:

.github/workflows/go-sdk.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ on:
44
push:
55
branches: ['main']
66
pull_request:
7-
types: [opened, reopened, synchronize, assigned, review_requested]
7+
types: [opened, synchronize]
88
paths:
99
- 'sdk/highlight-go/**'
1010
- '.github/workflows/go-sdk.yml'
@@ -17,6 +17,8 @@ jobs:
1717
steps:
1818
- name: Checkout
1919
uses: actions/checkout@v4
20+
with:
21+
token: ${{ secrets.GITHUB_TOKEN }}
2022
- name: Setup Go
2123
uses: actions/setup-go@v5
2224
with:
@@ -34,6 +36,8 @@ jobs:
3436
steps:
3537
- name: Checkout
3638
uses: actions/checkout@v4
39+
with:
40+
token: ${{ secrets.GITHUB_TOKEN }}
3741
- name: Setup Go
3842
uses: actions/setup-go@v5
3943
with:
@@ -52,6 +56,8 @@ jobs:
5256
steps:
5357
- name: Checkout
5458
uses: actions/checkout@v4
59+
with:
60+
token: ${{ secrets.GITHUB_TOKEN }}
5561
- name: Setup Go
5662
uses: actions/setup-go@v5
5763
with:
@@ -67,6 +73,8 @@ jobs:
6773
steps:
6874
- name: Checkout
6975
uses: actions/checkout@v4
76+
with:
77+
token: ${{ secrets.GITHUB_TOKEN }}
7078
- name: Setup Go
7179
uses: actions/setup-go@v5
7280
with:

.github/workflows/java-sdk.yml

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,11 @@ on:
1717
branches: ['main']
1818
tags: ['sdk/highlight-java/**']
1919
pull_request:
20-
types: [opened, reopened, synchronize, assigned, review_requested]
20+
types: [opened, synchronize]
2121
paths:
2222
- 'sdk/highlight-java/**'
2323
- '.github/workflows/java-sdk.yml'
2424

25-
permissions:
26-
checks: write
27-
2825
defaults:
2926
run:
3027
working-directory: ./sdk/highlight-java
@@ -43,7 +40,7 @@ jobs:
4340
- name: Checkout Code
4441
uses: actions/checkout@v4
4542
with:
46-
fetch-depth: 0
43+
token: ${{ secrets.GITHUB_TOKEN }}
4744

4845
- name: Deployment running
4946
id: deploy
@@ -104,7 +101,7 @@ jobs:
104101
- name: Checkout Code
105102
uses: actions/checkout@v4
106103
with:
107-
fetch-depth: 0
104+
token: ${{ secrets.GITHUB_TOKEN }}
108105

109106
- name: Set up JDK 17
110107
uses: actions/setup-java@v4
@@ -135,7 +132,7 @@ jobs:
135132
- name: Checkout Code
136133
uses: actions/checkout@v4
137134
with:
138-
fetch-depth: 0
135+
token: ${{ secrets.GITHUB_TOKEN }}
139136

140137
- name: Set up JDK 17
141138
uses: actions/setup-java@v4
@@ -172,7 +169,7 @@ jobs:
172169
- name: Checkout Code
173170
uses: actions/checkout@v4
174171
with:
175-
fetch-depth: 0
172+
token: ${{ secrets.GITHUB_TOKEN }}
176173

177174
- name: Set up JDK 17
178175
uses: actions/setup-java@v4

.github/workflows/python.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ jobs:
2020
working-directory: ./sdk/highlight-py
2121
steps:
2222
- uses: actions/checkout@v4
23+
with:
24+
token: ${{ secrets.GITHUB_TOKEN }}
2325
- name: Install poetry
2426
run: pipx install poetry
2527
- uses: actions/setup-python@v4
@@ -60,6 +62,8 @@ jobs:
6062

6163
steps:
6264
- uses: actions/checkout@v4
65+
with:
66+
token: ${{ secrets.GITHUB_TOKEN }}
6367
- name: Install poetry
6468
run: pipx install poetry
6569
- uses: actions/setup-python@v4

.github/workflows/ruby.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,14 @@ jobs:
1616
runs-on: ubuntu-latest
1717
strategy:
1818
matrix:
19-
ruby: ['3.0', '3.3']
19+
ruby: ['3.1', '3.3']
2020
defaults:
2121
run:
2222
working-directory: ./sdk/highlight-ruby/highlight
2323
steps:
2424
- uses: actions/checkout@v4
25+
with:
26+
token: ${{ secrets.GITHUB_TOKEN }}
2527
- uses: dorny/paths-filter@v2
2628
id: filter
2729
with:
@@ -58,6 +60,8 @@ jobs:
5860
working-directory: ./e2e/ruby/rails/demo
5961
steps:
6062
- uses: actions/checkout@v4
63+
with:
64+
token: ${{ secrets.GITHUB_TOKEN }}
6165
- name: Install Ruby
6266
uses: ruby/setup-ruby@v1
6367
with:
@@ -77,6 +81,8 @@ jobs:
7781
working-directory: ./e2e/ruby/rails/api-only
7882
steps:
7983
- uses: actions/checkout@v4
84+
with:
85+
token: ${{ secrets.GITHUB_TOKEN }}
8086
- name: Install Ruby
8187
uses: ruby/setup-ruby@v1
8288
with:

.github/workflows/rust-sdk.yml

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,11 @@ on:
44
push:
55
branches: ['main']
66
pull_request:
7-
types: [opened, reopened, synchronize, assigned, review_requested]
7+
types: [opened, synchronize]
88
paths:
99
- 'sdk/highlight-rust/**'
1010
- '.github/workflows/rust-sdk.yml'
1111

12-
permissions:
13-
checks: write
14-
1512
defaults:
1613
run:
1714
working-directory: ./sdk/highlight-rust
@@ -29,7 +26,7 @@ jobs:
2926
- name: Checkout Code
3027
uses: actions/checkout@v4
3128
with:
32-
fetch-depth: 0
29+
token: ${{ secrets.GITHUB_TOKEN }}
3330

3431
- name: Install Rust toolchain
3532
uses: actions-rs/toolchain@v1
@@ -53,7 +50,7 @@ jobs:
5350
- name: Checkout Code
5451
uses: actions/checkout@v4
5552
with:
56-
fetch-depth: 0
53+
token: ${{ secrets.GITHUB_TOKEN }}
5754

5855
- name: Install Rust toolchain
5956
uses: actions-rs/toolchain@v1

.github/workflows/turbo.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ jobs:
2222
with:
2323
token: ${{ secrets.SUBMODULE_PAT }}
2424
submodules: recursive
25-
fetch-depth: 0
2625

2726
# automatically caches dependencies based on yarn.lock
2827
- name: Setup Node.js environment

0 commit comments

Comments
 (0)