Skip to content

Commit 82012f8

Browse files
committed
chore: initial infrastructure
Signed-off-by: Rifa Achrinza <[email protected]>
1 parent 6d3086d commit 82012f8

22 files changed

+9599
-0
lines changed

.eslintignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
vendors

.eslintrc.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
// Copyright IBM Corp. 2022. All Rights Reserved.
2+
// This file is licensed under the MIT License.
3+
// License text available at https://opensource.org/licenses/MIT
4+
5+
module.exports = {
6+
extends: '@loopback/eslint-config',
7+
};

.github/workflows/ci.yaml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: CI
2+
on:
3+
push:
4+
branches:
5+
- main
6+
pull_request: {}
7+
jobs:
8+
code-lint:
9+
name: Code Lint
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v2
13+
- uses: actions/setup-node@v2
14+
with:
15+
node-version: 16
16+
- run: npm ci --ignore-scripts
17+
- run: |
18+
npm run-script --ignore-scripts prettier:check
19+
npm run-script --ignore-scripts validate-csaf20
20+
commit-lint:
21+
name: Commit Lint
22+
if: github.event.pull_request
23+
runs-on: ubuntu-latest
24+
steps:
25+
- uses: actions/checkout@v2
26+
with:
27+
fetch-depth: 0
28+
- uses: actions/setup-node@v2
29+
with:
30+
node-version: 16
31+
- name: Install Tools
32+
run: npm ci --ignore-scripts
33+
- run: npx commitlint --from=origin/master --to=HEAD --verbose

.gitmodules

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[submodule "vendors/secvisogram"]
2+
path = vendors/secvisogram
3+
url = [email protected]:BSI-Bund/secvisogram.git

.husky/commit-msg

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/bin/sh
2+
. "$(dirname "$0")/_/husky.sh"
3+
4+
npx --no-install commitlint --edit "$1"

.husky/pre-commit

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
#!/bin/sh
2+
. "$(dirname "$0")/_/husky.sh"
3+
4+
npm run-script prettier:check
5+
npm run-script validate-csaf20

.prettierignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
vendors

.prettierrc

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{
2+
"bracketSpacing": false,
3+
"singleQuote": true,
4+
"printWidth": 80,
5+
"trailingComma": "all",
6+
"arrowParens": "avoid",
7+
"overrides": [
8+
{
9+
"files": "**/*.md",
10+
"options": {
11+
"parser": "markdown",
12+
"proseWrap": "always"
13+
}
14+
}
15+
]
16+
}

.vscode/extensions.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"recommendations": [
3+
"redhat.vscode-yaml",
4+
"dbaeumer.vscode-eslint",
5+
"esbenp.prettier-vscode"
6+
]
7+
}

.vscode/settings.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"json.schemas": [
3+
{
4+
"fileMatch": [
5+
"advisories/lbsa-*.csaf.json"
6+
],
7+
"url": "https://docs.oasis-open.org/csaf/csaf/v2.0/csaf_json_schema.json"
8+
}
9+
]
10+
}

0 commit comments

Comments
 (0)