Skip to content

Commit

Permalink
feat: update to [email protected]
Browse files Browse the repository at this point in the history
Signed-off-by: Christian Kotzbauer <[email protected]>
  • Loading branch information
ckotzbauer committed Mar 20, 2022
1 parent 215404d commit 8bad74d
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
| Name | Description | Required | Default |
| --- | --- | --- | --- |
| `token` | `GITHUB_TOKEN` or a `repo` scoped [PAT](https://docs.github.com/en/github/authenticating-to-github/creating-a-personal-access-token). | `true` | `GITHUB_TOKEN` |
| `kyverno-version` | Version of the Kyverno-CLI. | `false` | `v1.4.3` |
| `kyverno-version` | Version of the Kyverno-CLI. | `false` | `v1.6.1` |
| `resource-files` | List of Kubernetes-YAML files to test. (Globs are supported) | `false` | `""` |
| `chart-dir` | Helm-Chart directory | `false` | `""` |
| `value-files` | List of Helm-Chart value files. | `false` | `""` |
Expand Down
4 changes: 2 additions & 2 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ inputs:
kyverno-version:
required: false
description: 'Kyverno version'
default: v1.4.3
default: v1.6.1
resource-files:
required: false
description: 'YAML files to test'
Expand All @@ -26,5 +26,5 @@ inputs:
required: true
description: 'Kyverno-Policy-Files'
runs:
using: 'node12'
using: 'node16'
main: 'dist/index.js'
3 changes: 2 additions & 1 deletion src/kyverno-test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@ const generateTestFile = async function (policies: ClusterPolicy[], resources: R
policy: policy.metadata.name,
rule: rule.name,
resource: resource.metadata.name,
status: "pass",
kind: resource.kind,
result: "pass",
});
}
}
Expand Down
3 changes: 2 additions & 1 deletion src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ export interface Test {
policy: string;
rule: string;
resource: string;
status: string;
kind: string;
result: string;
}>;
}

0 comments on commit 8bad74d

Please sign in to comment.