Skip to content

Commit 475585b

Browse files
authored
chore: add permissions to all workflows (#752)
1 parent e485e07 commit 475585b

File tree

7 files changed

+35
-9
lines changed

7 files changed

+35
-9
lines changed

.github/workflows/example.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ on:
77
pull_request:
88
types: [opened, synchronize, reopened]
99

10+
permissions:
11+
contents: read
12+
1013
jobs:
1114
cloudquery-sync:
1215
permissions:
@@ -15,8 +18,8 @@ jobs:
1518
runs-on: ${{ matrix.os }}
1619
strategy:
1720
matrix:
18-
dbversion: ['postgres:latest']
19-
cloudquery-version: ['6.8.0', 'v6.8.0']
21+
dbversion: ["postgres:latest"]
22+
cloudquery-version: ["6.8.0", "v6.8.0"]
2023
os: [ubuntu-latest]
2124
fail-fast: false
2225
services:

.github/workflows/example_matrix.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ on:
55
- main
66
pull_request:
77
types: [opened, synchronize, reopened]
8+
permissions:
9+
contents: read
810
jobs:
911
cloudquery:
1012
permissions:
@@ -39,7 +41,7 @@ jobs:
3941
- name: Setup CloudQuery
4042
uses: ./.
4143
with:
42-
version: 'v6.8.0'
44+
version: "v6.8.0"
4345
- name: Sync with CloudQuery
4446
run: cloudquery sync example_configs/spec.yml --log-console --shard ${{ matrix.shard }}
4547
env:

.github/workflows/prepare.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@ on:
33
push:
44
branches:
55
- release-*
6+
permissions:
7+
contents: read
8+
69
jobs:
710
prepare-dist:
811
runs-on: ubuntu-latest
@@ -12,10 +15,10 @@ jobs:
1215
token: ${{ secrets.GH_CQ_BOT }}
1316
- uses: actions/setup-node@v4
1417
with:
15-
node-version: 'lts/*'
16-
cache: 'npm'
18+
node-version: "lts/*"
19+
cache: "npm"
1720
- name: Install dependencies
1821
run: npm ci
1922
- uses: stefanzweifel/git-auto-commit-action@v5
2023
with:
21-
commit_message: 'chore: Prepare dist'
24+
commit_message: "chore: Prepare dist"

.github/workflows/release-please.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@ on:
33
push:
44
branches:
55
- main
6+
7+
permissions:
8+
contents: read
9+
610
jobs:
711
release-please:
812
runs-on: ubuntu-latest

.github/workflows/test.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ on:
77
pull_request:
88
types: [opened, synchronize, reopened]
99

10+
permissions:
11+
contents: read
12+
1013
jobs:
1114
test:
1215
runs-on: ubuntu-latest
@@ -15,8 +18,8 @@ jobs:
1518
- name: Use Node.js
1619
uses: actions/setup-node@v4
1720
with:
18-
node-version: 'lts/*'
19-
cache: 'npm'
21+
node-version: "lts/*"
22+
cache: "npm"
2023
- name: Install Dependencies
2124
run: npm ci
2225

.github/workflows/versioning.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,14 @@ on:
44
release:
55
types: [published, edited]
66

7+
permissions:
8+
contents: write
9+
710
jobs:
811
actions-tagger:
912
runs-on: ubuntu-latest
1013
steps:
11-
- uses: Actions-R-Us/actions-tagger@latest
14+
- uses: Actions-R-Us/actions-tagger@330ddfac760021349fef7ff62b372f2f691c20fb
1215
with:
1316
publish_latest_tag: true
1417
token: ${{ secrets.GITHUB_TOKEN }}

dist/index.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14963,6 +14963,14 @@ function _supportsColor(haveStream, {streamIsTTY, sniffFlags = true} = {}) {
1496314963
return 3;
1496414964
}
1496514965

14966+
if (env.TERM === 'xterm-ghostty') {
14967+
return 3;
14968+
}
14969+
14970+
if (env.TERM === 'wezterm') {
14971+
return 3;
14972+
}
14973+
1496614974
if ('TERM_PROGRAM' in env) {
1496714975
const version = Number.parseInt((env.TERM_PROGRAM_VERSION || '').split('.')[0], 10);
1496814976

0 commit comments

Comments
 (0)