{"id":20451132,"url":"https://github.com/avinashupadhya99/kubescape-action","last_synced_at":"2026-04-21T16:38:12.176Z","repository":{"id":107670148,"uuid":"461131448","full_name":"avinashupadhya99/kubescape-action","owner":"avinashupadhya99","description":"GitHub action to run Kubescape scans","archived":false,"fork":false,"pushed_at":"2022-08-24T03:38:49.000Z","size":11,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-01-28T13:50:55.873Z","etag":null,"topics":["github-actions","kubernetes-security"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/avinashupadhya99.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-02-19T08:29:15.000Z","updated_at":"2022-02-19T08:32:07.000Z","dependencies_parsed_at":"2023-05-27T04:39:35.471Z","dependency_job_id":null,"html_url":"https://github.com/avinashupadhya99/kubescape-action","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/avinashupadhya99/kubescape-action","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/avinashupadhya99%2Fkubescape-action","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/avinashupadhya99%2Fkubescape-action/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/avinashupadhya99%2Fkubescape-action/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/avinashupadhya99%2Fkubescape-action/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/avinashupadhya99","download_url":"https://codeload.github.com/avinashupadhya99/kubescape-action/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/avinashupadhya99%2Fkubescape-action/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32100737,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-21T11:25:29.218Z","status":"ssl_error","status_checked_at":"2026-04-21T11:25:28.499Z","response_time":128,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["github-actions","kubernetes-security"],"created_at":"2024-11-15T10:56:34.010Z","updated_at":"2026-04-21T16:38:12.138Z","avatar_url":"https://github.com/avinashupadhya99.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Kubescape action\n\nRun security scans on your Kubernetes manifests and Helm charts as a part of your CI using the Kubescape action. Kubescape scans K8s clusters, YAML files, and HELM charts, detecting misconfigurations according to multiple frameworks (such as the [NSA-CISA](https://www.armosec.io/blog/kubernetes-hardening-guidance-summary-by-armo) , [MITRE ATT\u0026CK®](https://www.microsoft.com/security/blog/2021/03/23/secure-containerized-environments-with-updated-threat-matrix-for-kubernetes/)), software vulnerabilities. \n\n## Usage\n\nAdd the following step to your workflow configuration:\n\n```yaml\nsteps:\n  - uses: actions/checkout@v2 \n  - uses: avinashupadhya99/kubescape-action@main\n    with:\n      files: kubernetes/*.yaml\n```\n\n## Inputs\n\n| Name | Description | Required |\n| --- | --- | ---|\n| files | The YAML files/Helm charts to scan for misconfigurations. The files need to be provided with the complete path from the root of the repository. | Yes |\n| threshold | Failure threshold is the percent above which the command fails and returns exit code 1 (default 0 i.e, action fails if any control fails) | No (default 0) |\n| framework | The security framework(s) to scan the files against. Multiple frameworks can be specified separated by a comma with no spaces. Example - `nsa,devopsbest`. Run `kubescape list frameworks` with the [Kubescape CLI](https://hub.armo.cloud/docs/installing-kubescape) to get a list of all frameworks. Either frameworks have to be specified or controls. | No |\n| control | The security control(s) to scan the files against. Multiple controls can be specified separated by a comma with no spaces. Example - `Configured liveness probe,Pods in default namespace`. Run `kubescape list controls` with the [Kubescape CLI](https://hub.armo.cloud/docs/installing-kubescape) to get a list of all controls. The complete control name can be specified or the ID such as `C-0001` can be specified. Either controls have to be specified or frameworks. | No |\n| args | Additional arguments to the Kubescape CLI. The following arguments are supported - \u003cul\u003e\u003cli\u003e` -f, --format` - Output format. Supported formats: \"pretty-printer\"/\"json\"/\"junit\"/\"prometheus\" (default \"pretty-printer\")\u003c/li\u003e\u003cli\u003e`-o, --output` - Output file. Print output to file and not stdout\u003c/li\u003e\u003cli\u003e`--exceptions` - Provide path to an [exception](https://hub.armo.cloud/docs/exceptions) object.\u003c/li\u003e\u003cli\u003e` -s, --silent` - Silent progress messages\u003c/li\u003e\u003cli\u003e`--verbose` - Display all of the input resources and not only failed resources\u003c/li\u003e\u003cli\u003e`--logger` - Logger level. Supported: debug/info/success/warning/error/fatal (default \"info\")\u003c/li\u003e\u003c/ul\u003e | No |\n\n## Examples\n\n- Standard\n\n```yaml\nname: Scan YAML files with Kubescape\non: push\n\njobs:\n  kubescape:\n    runs-on: ubuntu-latest\n    steps:\n      - uses: actions/checkout@master\n      - uses: avinashupadhya99/kubescape-action@main\n        with:\n          files: \"kubernetes-prod/*.yaml\"\n```\n\n- With arguments\n\n```yaml\nname: Scan YAML files using Kubescape with additional arguments\non: push\n\njobs:\n  kubescape:\n    runs-on: ubuntu-latest\n    steps:\n      - uses: actions/checkout@master\n      - uses: avinashupadhya99/kubescape-action@main\n        with:\n          args: \"--fail-threshold 90\"\n          files: \"kubernetes-prod/*.yaml\"\n```\n\n- Specifying frameworks\n\n```yaml\nname: Scan YAML files using Kubescape and against specific frameworks\non: push\n\njobs:\n  kubescape:\n    runs-on: ubuntu-latest\n    steps:\n      - uses: actions/checkout@master\n      - uses: avinashupadhya99/kubescape-action@main\n        with:\n          files: \"kubernetes-prod/*.yaml\"\n          framework: |\n            nsa,devopsbest\n```\n\n- Specific controls\n\n```yaml\nname: Scan YAML files using Kubescape and for specific controls\non: push\n\njobs:\n  kubescape:\n    runs-on: ubuntu-latest\n    steps:\n      - uses: actions/checkout@master\n      - uses: avinashupadhya99/kubescape-action@main\n        with:\n          files: \"kubernetes-prod/*.yaml\"\n          control: |\n            Configured liveness probe,Pods in default namespace,Bash/cmd inside container\n```\n\n- Store the results in a file as an artifacts\n\n```yaml\nname: Scan YAML files with Kubescape and store results as an artifact\non: push\n\njobs:\n  kubescape:\n    runs-on: ubuntu-latest\n    steps:\n      - uses: actions/checkout@master\n      - uses: avinashupadhya99/kubescape-action@main\n        with:\n          args: \"--format junit --output results.xml\"\n          files: \"kubernetes-prod/*.yaml\"\n          framework: nsa\n      - name: Archive kubescape scan results\n        uses: actions/upload-artifact@v2\n        with:\n          name: kubescape-scan-report\n          path: results.xml\n```\n\n## License\n\n[//]: TODO\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Favinashupadhya99%2Fkubescape-action","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Favinashupadhya99%2Fkubescape-action","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Favinashupadhya99%2Fkubescape-action/lists"}