+
Skip to content

feat(action): add install action #5

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 10, 2023
Merged
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
35 changes: 34 additions & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,40 @@ jobs:
with:
submodules: true

# - name: Installing Prerequisites (Kind Cluster)
## Documents should contain desc. of all these fields and how to generate and store the baseline
## Set of examples [With all the fields]
##FAQs:
## - My app. creates temp files and I need to ignore those files, what should be the solution here?
## - I want my CI to pass, but still generate the report
## - I want to only list Process, file or syscall events, what should I do?
## TODO: Create similar action for k8tls
#
# - name: Kubearmor action [2 Actions]
# uses: accuknox-action@semver
# with:
# kubearmor-image: stable[IMAGE_NAME]
# discovery-engine: stable[IMAGE_NAME]
# workload-namespace: [""] [Phase 2]
# license-key: "string"[Secrets] [Phase 2]
# user-id: "" [Phase 2]
#
# - name: Kubearmor action to generate report[2 Actions]
# uses: accuknox-report@semver
# with:
# baseline-report-path: "" [Github]
# labels: "" ["kubearmor-app: kubearmor-relay"]
# operation: ""[Process, file, Network, Syscall]
# container-name: "" []
# namespaces: [""]
# workloads: ["deployment/mysql","statefulsets/vault","deployment/*"]
# source: ""
# process-ignore-paths: "/sbin" [Regex]
# file-ignore-paths: "/sbin" [Regex]
# ignore-return-code: true/false
# view: tabular/ [Phase 2]


# - name: Installing Prerequisites (Kind Cluster)
# uses: helm/kind-action@v1.4.0

- name: Checkout kubearmor repo
Expand Down
26 changes: 26 additions & 0 deletions action.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: test-install
description: 'Install accuknox-cli, kubearmor and discovery engine '
inputs:
who-to-greet: # id of input
description: 'Who to greet'
required: true
default: 'World'
outputs:
random-number:
description: "Random number"
value: ${{ steps.random-number-generator.outputs.random-number }}
runs:
using: "composite"
steps:
- name: Checkout accuknox-cli repo
uses: actions/checkout@v3
with:
repository: rajaSahil/accuknox-cli
ref: feat-report
path: accuknox-cli
- id: Install kubearmor and discovery-engine
run: |
cd accuknox-cli
./accuknox-cli version
./accuknox-cli install
shell: bash
点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载