+
Skip to content

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

sharmayajush
Copy link

  • added seperate actions for install and report.

Comment on lines 16 to 19
outputs:
random-number:
description: "Random number"
value: ${{ steps.random-number-generator.outputs.random-number }}
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is not required.

baseline-report-path:
description: 'baseline report path'
required: true
default: "baseline/report.json > downloads/table"
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
default: "baseline/report.json > downloads/table"
default: "baseline/report.json"

Comment on lines 8 to 42
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
Copy link
Owner

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.

Comment on lines 37 to 40
view:
description: 'view'
required: false
default: 'tabular/'
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
view:
description: 'view'
required: false
default: 'tabular/'
view:
description: 'view'
required: false
default: 'tabular'

Comment on lines 42 to 45
outputs:
random-number:
description: "Random number"
value: ${{ steps.random-number-generator.outputs.random-number }}
Copy link
Owner

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

Comment on lines 52 to 54
kubectl get pods -A
sleep 200
kubectl get pods -A
Copy link
Owner

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.

Comment on lines 83 to 86
./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
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
./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

@sharmayajush sharmayajush requested a review from rajaSahil August 14, 2023 06:24
uses: actions/upload-artifact@v2
with:
name: Baseline report
path: downloads
Copy link
Owner

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载