Skip to content

Commit

Permalink
chore: Test
Browse files Browse the repository at this point in the history
  • Loading branch information
rsenden committed Sep 25, 2023
1 parent 63ad4ea commit f9be3b2
Show file tree
Hide file tree
Showing 18 changed files with 7,719 additions and 9 deletions.
5 changes: 5 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

(cd run && NODE_OPTIONS=--openssl-legacy-provider npm run build && git add dist/)
(cd setup && NODE_OPTIONS=--openssl-legacy-provider npm run build && git add dist/)
20 changes: 20 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: 'TODO'
description: 'TODO'
author: 'Fortify'
inputs:
test:
description: 'Test'
default: 'none'
required: false
runs:
using: composite
steps:
- uses: fortify-ps/github-action/setup@main
with:
test: |
${{inputs.test}}
branding:
icon: 'shield'
color: 'blue'

4 changes: 4 additions & 0 deletions configure.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#! /bin/bash
(cd run && npm install)
(cd setup && npm install)
git config --local core.hooksPath=.husky
4 changes: 4 additions & 0 deletions developers.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Information for developers

## Husky
After cloning this repository, please run ./configure.sh to install npm modules and configure git hooks.
33 changes: 33 additions & 0 deletions run/.eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
module.exports = {
"env": {
"browser": true,
"es2021": true
},
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended"
],
"overrides": [
{
"env": {
"node": true
},
"files": [
".eslintrc.{js,cjs}"
],
"parserOptions": {
"sourceType": "script"
}
}
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": "latest",
"sourceType": "module"
},
"plugins": [
"@typescript-eslint"
],
"rules": {
}
}
23 changes: 23 additions & 0 deletions run/LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
The MIT License (MIT)
(c) Copyright 2020 Micro Focus or one of its affiliates

Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including without
limitation the rights to use, copy, modify, merge, publish, distribute,
sublicense, and/or sell copies of the Software, and to permit persons to
whom the Software is furnished to do so, subject to the following
conditions:

The above copyright notice and this permission notice shall be included
in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY
KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
IN THE SOFTWARE.
14 changes: 14 additions & 0 deletions run/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: 'Setup Fortify Tools'
description: 'Run arbitrary commands'
author: 'Fortify'
inputs:
cmd:
description: 'Command to run'
required: true
runs:
using: node20
main: 'dist/index.js'
branding:
icon: 'shield'
color: 'blue'

Loading

0 comments on commit f9be3b2

Please sign in to comment.