Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
root = true

[*]
indent_style = space
indent_size = 2
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
1 change: 0 additions & 1 deletion .eslintignore

This file was deleted.

10 changes: 0 additions & 10 deletions .eslintrc.cjs

This file was deleted.

22 changes: 6 additions & 16 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,35 +1,25 @@
name: CI

on:
push:
branches:
- 'main'
pull_request: {}

defaults:
run:
shell: bash
- push
- pull_request

jobs:
test:
name: Test Node ${{ matrix.node }}
runs-on: ubuntu-latest
strategy:
matrix:
node: [18, 20, 22]
node: [20, 22, 24]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
- uses: actions/checkout@v6
- uses: actions/setup-node@v6
with:
node-version: ${{ matrix.node }}

- name: Install Dependencies
run: |
npm install

- name: Prettier
run: |
npm run prettier
npm ci

- name: Lint
run: |
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/coana-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,21 +2,21 @@ name: Coana Vulnerability Analysis

on:
schedule:
- cron: '0 3 * * *' # every day at 3 AM
- cron: "0 3 * * *" # every day at 3 AM
workflow_dispatch:
inputs:
tags:
description: 'Manually run vulnerability analysis'
# Required by the return-dispatch action
description: "Manually run vulnerability analysis"
distinct_id:
description: Required by the return-dispatch action

jobs:
coana-vulnerability-analysis:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v4
uses: actions/checkout@v6

- name: Run Coana CLI
id: coana-cli
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/coana-guardrail.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jobs:

steps:
- name: Checkout the ${{github.base_ref}} branch
uses: actions/checkout@v4
uses: actions/checkout@v6
with:
ref: ${{github.base_ref}} # checkout the base branch (usually master/main).

Expand All @@ -21,10 +21,10 @@ jobs:
run: |
echo "all_changed_files=$(git diff --name-only ${{ github.base_ref }} ${{ github.head_ref }} | tr '\n' ' ')" >> $GITHUB_OUTPUT

- name: Use Node.js 20.x
uses: actions/setup-node@v4
- name: Use Node.js 24
uses: actions/setup-node@v6
with:
node-version: 20.x
node-version: 24

- name: Run Coana on the ${{github.base_ref}} branch
run: |
Expand All @@ -44,7 +44,7 @@ jobs:
run: sudo chown -R $USER:$USER .

- name: Checkout the current branch
uses: actions/checkout@v4
uses: actions/checkout@v6
with:
clean: true

Expand Down
14 changes: 5 additions & 9 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,24 +7,20 @@ on:
release:
types: [published]

defaults:
run:
shell: bash

jobs:
test:
name: Publish to NPM
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
- uses: actions/checkout@v6
- uses: actions/setup-node@v6
with:
node-version: 18
registry-url: 'https://registry.npmjs.org'
node-version: 24
registry-url: "https://registry.npmjs.org"

- name: Install Dependencies
run: |
npm install
npm ci

- name: Build project
run: |
Expand Down
6 changes: 0 additions & 6 deletions .prettierrc

This file was deleted.

47 changes: 47 additions & 0 deletions biome.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
{
"$schema": "node_modules/@biomejs/biome/configuration_schema.json",
"vcs": {
"enabled": true,
"clientKind": "git",
"useIgnoreFile": true,
"defaultBranch": "main"
},
"linter": {
"enabled": true,
"domains": {
"project": "recommended",
"test": "recommended"
},
"rules": {
"recommended": true,
"correctness": {
"useImportExtensions": {
"level": "error",
"fix": "safe",
"options": {
"forceJsExtensions": true
}
}
}
}
},
"assist": {
"enabled": true,
"actions": {
"recommended": true
}
},
"formatter": {
"enabled": true,
"useEditorconfig": true,
"formatWithErrors": true,
"lineWidth": 120
},
"javascript": {
"formatter": {
"quoteStyle": "single",
"trailingCommas": "all",
"quoteProperties": "preserve"
}
}
}
70 changes: 0 additions & 70 deletions jest.config.ts

This file was deleted.

Loading