I’m trying to send a kubescape report via github action and unfortunetely, I have an error shown as below:
Scan results have not been submitted: Sign up for free:
https://portal.armo.cloud/account/sign-up
Of course I’ve created an account, and I try to submit the report like this:
kubescape:
runs-on: ubuntu-20.04
strategy:
matrix: { dir_kube: ['ionos/kubernetes/dev/*.yaml', 'azure/kubernetes/prod/*.yaml', 'ionos/kubernetes/prod/*.yaml']}
steps:
- name: Clone repo
uses: actions/checkout@master
- name: Install kubescape
run: curl -s https://raw.githubusercontent.com/armosec/kubescape/master/install.sh | /bin/bash
# Scanning cluster, specified by filter path
- name: Scan repository
run: kubescape scan --submit --account=${{ secrets.KUBESCAPE_REPORT }} ${{ matrix.dir_kube }}
The secret is corresponding to my key account.
What I’ve tried:
- Replace the secret (In case I would have mistyped it)
- add
--verbose
- add
--logger debug
- scan and send the report from my machine directly
(I manage to send the report correctly, but as you wonder, I don’t want to do from my machine as it is a cron job.)
Is it even possible to do it from GA? Am I missing something?
2
Answers
Kubescape just released support for submitting file scans to the portal. Check it now with the latest version!
Set a github secret called
KUBESCAPE_ACCOUNT
.Then, add the following code to your workflow (copied from here):