From 6c4f79c5af7da91ab03708a32436157559456f03 Mon Sep 17 00:00:00 2001 From: AKSHAT TANDON Date: Sun, 3 Mar 2024 16:19:26 +0100 Subject: [PATCH] refactor --- .gitignore | 122 +++++++++++------------------------------------------ Dockerfile | 4 +- LICENSE | 2 +- action.yml | 10 ++--- 4 files changed, 31 insertions(+), 107 deletions(-) diff --git a/.gitignore b/.gitignore index 24d39be..d68fd55 100644 --- a/.gitignore +++ b/.gitignore @@ -1,99 +1,25 @@ -# Dependency directory -node_modules - -# Visual Studio Config -.vscode - -# Rest pulled from https://github.com/github/gitignore/blob/master/Node.gitignore -# Logs -logs -*.log -npm-debug.log* -yarn-debug.log* -yarn-error.log* -lerna-debug.log* - -# Diagnostic reports (https://nodejs.org/api/report.html) -report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json - -# Runtime data -pids -*.pid -*.seed -*.pid.lock - -# Directory for instrumented libs generated by jscoverage/JSCover -lib-cov - -# Coverage directory used by tools like istanbul -coverage -*.lcov - -# nyc test coverage -.nyc_output - -# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files) -.grunt - -# Bower dependency directory (https://bower.io/) -bower_components - -# node-waf configuration -.lock-wscript - -# Compiled binary addons (https://nodejs.org/api/addons.html) -build/Release - -# Dependency directories -jspm_packages/ - -# TypeScript cache -*.tsbuildinfo - -# Optional npm cache directory -.npm - -# Optional eslint cache -.eslintcache - -# Optional REPL history -.node_repl_history - -# Output of 'npm pack' -*.tgz - -# Yarn Integrity file -.yarn-integrity - -# dotenv environment variables file -.env -.env.test - -# parcel-bundler cache (https://parceljs.org/) -.cache - -# next.js build output -.next - -# nuxt.js build output -.nuxt - -# vuepress build output -.vuepress/dist - -# Serverless directories -.serverless/ - -# FuseBox cache -.fusebox/ - -# DynamoDB Local files -.dynamodb/ - -# OS metadata +# Docker project generated files to ignore +# if you want to ignore files created by your editor/tools, +# please consider a global .gitignore https://help.github.com/articles/ignoring-files +.vagrant* +bin +docker/docker +.*.swp +a.out +*.orig +build_src +.flymake* +.idea .DS_Store -Thumbs.db - -# Ignore built ts files -__tests__/runner/* -lib/**/* \ No newline at end of file +docs/_build +docs/_static +docs/_templates +.gopath/ +.dotcloud +*.test +bundles/ +.hg/ +.git/ +vendor/pkg/ +pyenv +Vagrantfile \ No newline at end of file diff --git a/Dockerfile b/Dockerfile index 013de06..f7446d2 100644 --- a/Dockerfile +++ b/Dockerfile @@ -11,9 +11,7 @@ RUN wget -q "$(wget -qO- "https://api.github.com/repos/stackguardian/sg-cli/rele && mv StackGuardian-sg-cli*/sg-cli /usr/local/bin/ \ && rm -rf StackGuardian-sg-cli* -# Copies your code file from your action repository to the filesystem path `/` of the container COPY entrypoint.sh /entrypoint.sh RUN chmod +x entrypoint.sh -# Code file to execute when the docker container starts up (`entrypoint.sh`) -ENTRYPOINT ["/entrypoint.sh"] +ENTRYPOINT ["/entrypoint.sh"] diff --git a/LICENSE b/LICENSE index 3c3addd..52a1cc5 100644 --- a/LICENSE +++ b/LICENSE @@ -186,7 +186,7 @@ same "printed page" as the copyright notice for easier identification within third-party archives. - Copyright 2022 StackGuardian + Copyright 2024 StackGuardian Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/action.yml b/action.yml index 8870846..87496ea 100644 --- a/action.yml +++ b/action.yml @@ -1,12 +1,12 @@ -name: 'Workflow Run' -description: 'Schedule a StackGuardian Workflow Run' +name: 'StackGuardian CLI' +description: 'Run sg-cli commands. Read more at https://github.com/StackGuardian/sg-cli/blob/main/README.md.' author: 'StackGuardian' branding: - icon: 'aperture' + icon: 'command' color: 'blue' inputs: - sg-cmd: - description: 'sg-cli operation' + sg-cli-operation: + description: 'sg-cli operation like "workflow create ..." or "stack create ..."' required: true runs: using: 'docker'