Skip to content

Commit a08c163

Browse files
committed
Carry over enhancements from #2
1 parent 61b6b27 commit a08c163

File tree

5 files changed

+44
-2
lines changed

5 files changed

+44
-2
lines changed

.cspell.json

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
{
2+
"$schema": "https://raw.githubusercontent.com/streetsidesoftware/cspell/main/cspell.schema.json",
3+
"version": "0.2",
4+
"dictionaryDefinitions": [
5+
{
6+
"name": "project-words",
7+
"path": "./project-words.txt",
8+
"addWords": true
9+
}
10+
],
11+
"dictionaries": ["project-words"],
12+
"ignorePaths": [
13+
".vscode",
14+
"**/.cspell.json",
15+
"**/.git/**",
16+
"**/node_modules/**",
17+
"**/package-lock.json",
18+
"/project-words.txt"
19+
]
20+
}

.github/workflows/enforce-labels.yml

+7
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,18 @@ on:
55
workflow_call:
66
pull_request:
77
types: [labeled, unlabeled, opened, reopened, synchronize]
8+
9+
permissions: read-all
10+
811
jobs:
912
enforce-label:
1013
if: ${{ contains(github.event.*.labels.*.name, 'hold') || contains(github.event.*.labels.*.name, 'needs-qa') }}
1114
name: Enforce label
1215
runs-on: ubuntu-22.04
16+
permissions:
17+
contents: read
18+
checks: write
19+
pull-requests: write
1320

1421
steps:
1522
- name: Check for label

.github/workflows/workflow-linter.yml

+6
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,12 @@ on:
66
paths:
77
- .github/workflows/**
88

9+
permissions: read-all
10+
911
jobs:
1012
call-workflow:
1113
uses: bitwarden/gh-actions/.github/workflows/workflow-linter.yml@67ab95d7a466bcefdedf3f93cbc10bcff436edfe
14+
permissions:
15+
contents: read
16+
checks: write
17+
pull-requests: write

.mega-linter.yml

-2
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,3 @@ APPLY_FIXES: all
22
DEFAULT_BRANCH: main
33
SHOW_ELAPSED_TIME: false
44
FILEIO_REPORTER: false
5-
DISABLE_LINTERS:
6-
- SPELL_CSPELL

project-words.txt

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# Custom dictionary for spellchecking. Before adding a word here, consider whether you can put
2+
# it in a single (`) or multiline (```) code snippet instead, as they are automatically ignored
3+
# by the spellchecker. Please keep the list sorted alphabetically.
4+
5+
Bitwarden
6+
classpath
7+
fullname
8+
keyserver
9+
stefanzweifel
10+
venv
11+
yogevbd

0 commit comments

Comments
 (0)