Skip to content

Commit

Permalink
feat: initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
TheCatLady committed Feb 27, 2024
0 parents commit 1edec1f
Show file tree
Hide file tree
Showing 1,874 changed files with 282,655 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
// For format details, see https://aka.ms/devcontainer.json. For config options, see the
// README at: https://github.com/devcontainers/templates/tree/main/src/typescript-node
{
"name": "inventory.fix.security",
// Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile
"image": "mcr.microsoft.com/devcontainers/typescript-node:0-18",

// Features to add to the dev container. More info: https://containers.dev/features.
// "features": {},

// Use 'forwardPorts' to make a list of ports inside the container available locally.
// "forwardPorts": [],

// Use 'postCreateCommand' to run commands after the container is created.
"postCreateCommand": "yarn install"

// Configure tool-specific properties.
// "customizations": {},

// Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
// "remoteUser": "root"
}
21 changes: 21 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# editorconfig.org

root = true

[*]
charset = utf-8
end_of_line = lf
insert_final_newline = true
indent_style = space
indent_size = 2
trim_trailing_whitespace = true

[*.{md,mdx}]
trim_trailing_whitespace = false

[*.svg]
insert_final_newline = false

[*.py]
indent_size = 4

3 changes: 3 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
.docusaurus
build
node_modules
47 changes: 47 additions & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
{
"env": {
"browser": true,
"es2021": true,
"node": true
},
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"plugin:jsx-a11y/recommended",
"plugin:react/recommended",
"plugin:react-hooks/recommended",
"plugin:regexp/recommended",
"prettier"
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaFeatures": {
"jsx": true
},
"sourceType": "module"
},
"plugins": ["formatjs", "jsx-a11y", "prettier", "react-hooks", "regexp"],
"root": true,
"rules": {
"@typescript-eslint/camelcase": 0,
"@typescript-eslint/explicit-function-return-type": "off",
"@typescript-eslint/no-unused-vars": ["error"],
"@typescript-eslint/no-use-before-define": 0,
"arrow-parens": "off",
"formatjs/no-offset": "error",
"jsx-a11y/anchor-is-valid": "off",
"jsx-a11y/no-noninteractive-tabindex": 0,
"jsx-a11y/no-onchange": "off",
"no-console": 1,
"no-unused-vars": "off",
"prettier/prettier": ["error", { "endOfLine": "auto" }],
"react/jsx-uses-react": "off",
"react/react-in-jsx-scope": "off"
},
"reportUnusedDisableDirectives": true,
"settings": {
"react": {
"version": "detect"
}
}
}
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* text=auto eol=lf
8 changes: 8 additions & 0 deletions .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
* @TheCatLady

latestRelease.json @TheCatLady @lloesche @aquamatthias @meln1k
/docs/ @TheCatLady @lloesche @aquamatthias @meln1k
/releases/ @TheCatLady @lloesche @aquamatthias @meln1k
/openapi/ @TheCatLady @lloesche @aquamatthias @meln1k

/tools/*.py @TheCatLady @aquamatthias
29 changes: 29 additions & 0 deletions .github/ISSUE_TEMPLATE/bug.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: 🐞 Bug Report
description: Report a problem
labels: ['🐞 bug']
body:
- type: markdown
attributes:
value: |
Thanks for taking the time to fill out this bug report!
- type: textarea
id: description
attributes:
label: Description
description: Please provide a clear and concise description of the bug or issue.
validations:
required: true
- type: textarea
id: screenshots
attributes:
label: Screenshots
description: If applicable, please provide screenshots depicting the problem.
- type: textarea
id: additional-context
attributes:
label: Additional Context
description: Provide any additional information or screenshots that may be relevant or helpful.
- type: markdown
attributes:
value: |
By submitting this bug report, I agree to follow the [code of conduct](https://inventory.fix.security/code-of-conduct).
8 changes: 8 additions & 0 deletions .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
blank_issues_enabled: false
contact_links:
- name: 💬 Discord
url: https://discord.gg/someengineering
about: Chat with other users and the development team
- name: 📄 Documentation
url: https://inventory.fix.security
about: Read and search documentation
31 changes: 31 additions & 0 deletions .github/ISSUE_TEMPLATE/enhancement.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: ✨ Feature Request
description: Suggest an idea
labels: ['🌟 enhancement']
body:
- type: markdown
attributes:
value: |
Thanks for taking the time to fill out this feature request!
- type: textarea
id: motivation
attributes:
label: Motivation
description: Please provide a clear and concise description of the rationale behind this request.
validations:
required: true
- type: textarea
id: desired-behavior
attributes:
label: Desired Behavior
description: Provide a clear and concise description of what you want to happen.
validations:
required: true
- type: textarea
id: additional-context
attributes:
label: Additional Context
description: Provide any additional information or screenshots that may be relevant or helpful.
- type: markdown
attributes:
value: |
By submitting this feature request, I agree to follow the [code of conduct](https://inventory.fix.security/code-of-conduct).
26 changes: 26 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# Description

<!-- Please describe the changes included in this PR here. -->

# Docs Version(s)

<!-- The Fix Inventory documentation is versioned. (Please see https://docusaurus.io/docs/versioning for details.) -->
<!-- Add an 'x' between the brackets to mark each version of the docs modified in this PR. -->
<!-- (Feel free to remove this section if this PR does not include docs changes.) -->

- [ ] `edge`
- [ ] `4.X`

# To-Dos

<!-- Before submitting this PR, please format, lint, and build your changes locally. -->
<!-- Add an 'x' between the brackets to mark each task as completed. -->
<!-- (Feel free to remove any items that do not apply to this PR.) -->

- [ ] Format with `yarn format`
- [ ] Lint with `yarn lint`
- [ ] Build successfully with `yarn build:fast`

# Code of Conduct

By submitting this pull request, I agree to follow the [code of conduct](https://inventory.fix.security/code-of-conduct).
24 changes: 24 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
version: 2

updates:
- package-ecosystem: npm
directory: '/'
schedule:
interval: daily
commit-message:
prefix: '[skip ci] build'
prefix-development: '[skip ci] chore'
include: scope
labels:
- 🧩 dependencies
- 🤖 bot
- package-ecosystem: github-actions
directory: '/'
schedule:
interval: daily
commit-message:
prefix: '[skip ci] ci'
include: scope
labels:
- 🧩 dependencies
- 🤖 bot
5 changes: 5 additions & 0 deletions .github/holopin.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
organization: someengineering
defaultSticker: cle9bxdma159008l6g0nj6aut
stickers:
- id: cle9bxdma159008l6g0nj6aut
alias: contributor-badge
58 changes: 58 additions & 0 deletions .github/labels.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
- name: 🚧 blocked
color: 'f89406'
description: This issue or pull request is blocked by a problem outside the scope of this project
from_name: blocked

- name: 🤖 bot
color: '008672'
description: This issue or pull request was created by a bot
from_name: bot

- name: 🐞 bug
color: 'd73a4a'
description: Something isn't working
from_name: bug

- name: 🧩 dependencies
color: 'fc7f8b'
description: Updates to dependencies
from_name: dependencies

- name: ✏️ documentation
color: '0075ca'
description: Improvements or additions to documentation
from_name: documentation

- name: 👥 duplicate
color: 'cfd3d7'
description: This issue or pull request already exists
from_name: duplicate

- name: 🌟 enhancement
color: 'a2eeef'
description: New feature or request
from_name: enhancement

- name: ⚠️ invalid
color: 'e4e669'
description: This doesn't seem right
from_name: invalid

- name: 💬 needs more info
color: 'd4c5f9'
description: Additional details are required to proceed

- name: ❔ question
color: 'd876e3'
description: Clarification or help is requested
from_name: question

- name: 💤 stale
color: 'f5f5f5'
description: This issue or pull request hasn't been updated in a while
from_name: stale

- name: ⛔ won't fix
color: '666666'
description: This will not be worked on
from_name: wontfix
34 changes: 34 additions & 0 deletions .github/workflows/algolia.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Algolia Crawler

on:
push:
branches:
- main
workflow_dispatch:

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
crawl:
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v4
# - name: Wait for Netlify deployment
# if: github.event_name != 'workflow_dispatch'
# uses: probablyup/[email protected]
# with:
# site_id: ${{ secrets.NETLIFY_SITE_ID }}
# env:
# NETLIFY_TOKEN: ${{ secrets.NETLIFY_TOKEN }}
# - name: Trigger Algolia crawl
# uses: algolia/algoliasearch-crawler-github-actions@v1
# with:
# crawler-user-id: ${{ secrets.CRAWLER_USER_ID }}
# crawler-api-key: ${{ secrets.CRAWLER_API_KEY }}
# algolia-app-id: ${{ secrets.ALGOLIA_APP_ID }}
# algolia-api-key: ${{ secrets.ALGOLIA_API_KEY }}
# site-url: https://inventory.fix.security
# crawler-name: resoto
35 changes: 35 additions & 0 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: CodeQL

on:
push:
branches:
- main
pull_request:
branches:
- main
schedule:
- cron: '0 0 * * *'
workflow_dispatch:

jobs:
analyze:
runs-on: ubuntu-latest
permissions:
actions: read
contents: read
security-events: write
strategy:
fail-fast: false
matrix:
language: ['javascript']
steps:
- name: Check out repository
uses: actions/checkout@v4
- name: Initialize CodeQL
uses: github/codeql-action/init@v3
with:
languages: ${{ matrix.language }}
- name: Build
uses: github/codeql-action/autobuild@v3
- name: Perform CodeQL analysis
uses: github/codeql-action/analyze@v3
24 changes: 24 additions & 0 deletions .github/workflows/labels.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Update Labels

on:
push:
branches:
- main
paths:
- '.github/**/labels.yml'
workflow_dispatch:

jobs:
label:
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v4
- name: Update labels
if: success()
uses: crazy-max/ghaction-github-labeler@v5
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
yaml-file: .github/labels.yml
skip-delete: false
dry-run: false
Loading

0 comments on commit 1edec1f

Please sign in to comment.