-
Notifications
You must be signed in to change notification settings - Fork 7
feat: install and report actions #7
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
base: main
Are you sure you want to change the base?
Conversation
sharmayajush
commented
Aug 10, 2023
- added seperate actions for install and report.
actions/install-action/action.yaml
Outdated
outputs: | ||
random-number: | ||
description: "Random number" | ||
value: ${{ steps.random-number-generator.outputs.random-number }} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is not required.
actions/report-action/action.yaml
Outdated
baseline-report-path: | ||
description: 'baseline report path' | ||
required: true | ||
default: "baseline/report.json > downloads/table" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
default: "baseline/report.json > downloads/table" | |
default: "baseline/report.json" |
actions/report-action/action.yaml
Outdated
labels: | ||
description: 'labels' | ||
required: false | ||
operation: | ||
description: 'operation' | ||
required: false | ||
container-name: | ||
description: 'container name' | ||
required: false | ||
namespaces: | ||
description: 'namespaces' | ||
required: false | ||
workloads: | ||
description: 'workloads' | ||
required: false | ||
source: | ||
description: 'source' | ||
required: false | ||
process-ignore-paths: | ||
description: 'process ignore paths' | ||
required: false | ||
default: '/sbin' | ||
file-ignore-paths: | ||
description: 'file ignore paths' | ||
required: false | ||
default: '/sbin' | ||
ignore-return-code: | ||
description: 'ignore return code. possible values: true/false' | ||
required: false |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Make default value as empty string.
actions/report-action/action.yaml
Outdated
view: | ||
description: 'view' | ||
required: false | ||
default: 'tabular/' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
view: | |
description: 'view' | |
required: false | |
default: 'tabular/' | |
view: | |
description: 'view' | |
required: false | |
default: 'tabular' |
actions/report-action/action.yaml
Outdated
outputs: | ||
random-number: | ||
description: "Random number" | ||
value: ${{ steps.random-number-generator.outputs.random-number }} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is not required for phase 1
actions/report-action/action.yaml
Outdated
kubectl get pods -A | ||
sleep 200 | ||
kubectl get pods -A |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This can be removed too.
actions/report-action/action.yaml
Outdated
./accuknox-cli report $setupArgs | ||
|
||
cat downloads/table | ||
mv /tmp/report-*.json downloads/report.json | ||
mv /tmp/diff-report-*.json downloads/diff-report.json | ||
mv /tmp/diff-report-*.md downloads/diff-report.md |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
./accuknox-cli report $setupArgs | |
cat downloads/table | |
mv /tmp/report-*.json downloads/report.json | |
mv /tmp/diff-report-*.json downloads/diff-report.json | |
mv /tmp/diff-report-*.md downloads/diff-report.md | |
./accuknox-cli report $setupArgs | |
mkdir downloads | |
mv /tmp/report-*.json downloads/report.json | |
mv /tmp/diff-report-*.json downloads/diff-report.json | |
mv /tmp/diff-report-*.md downloads/diff-report.md |
uses: actions/upload-artifact@v2 | ||
with: | ||
name: Baseline report | ||
path: downloads |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also add this as a next step for this action
- name: PR comment with file
uses: thollander/actions-comment-pull-request@v2
with:
filePath: downloads/diff-report.md
update added flags and args fixes added branding fixes