-
Notifications
You must be signed in to change notification settings - Fork 50
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Simplified now by the new [setup-regal](https://github.com/StyraInc/setup-regal) GitHub Action. The new-ish `--format github` flag will also annotate PRs with any violation encountered in the code at the location of the violation, making it really easy to spot. Also fixed some style violations from more recent Regal rules, and amended the Regal configuration to ignore some of the new rules that would require more work to enable. Let me know what you all think, and have a great weekend! Signed-off-by: Anders Eknert <[email protected]>
- Loading branch information
1 parent
8da97f9
commit a94b1f2
Showing
37 changed files
with
105 additions
and
80 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -27,7 +27,7 @@ jobs: | |
with: | ||
use-verbose-mode: 'yes' | ||
|
||
# main job of testing and building the env. | ||
# main job of testing and building the env. | ||
test_pr_checks: | ||
# needs: [markdown-link-check] | ||
permissions: | ||
|
@@ -42,10 +42,10 @@ jobs: | |
# needs: [test_pr_checks] | ||
# uses: kubescape/workflows/.github/workflows/coverage-check.yaml@main | ||
# if: | | ||
# ${{ (always() && | ||
# (contains(needs.*.result, 'success')) && | ||
# !(contains(needs.*.result, 'skipped')) && | ||
# !(contains(needs.*.result, 'failure')) && | ||
# ${{ (always() && | ||
# (contains(needs.*.result, 'success')) && | ||
# !(contains(needs.*.result, 'skipped')) && | ||
# !(contains(needs.*.result, 'failure')) && | ||
# !(contains(needs.*.result, 'cancelled'))) }} | ||
# with: | ||
# COVERAGELIMIT: "58" | ||
|
@@ -70,7 +70,7 @@ jobs: | |
name: checkout repo content | ||
with: | ||
token: ${{ secrets.GH_PERSONAL_ACCESS_TOKEN }} | ||
|
||
# Test using Golang OPA hot rule compilation | ||
- name: Set up Go | ||
uses: actions/setup-go@6edd4406fa81c3da01a34fa6f6343087c207a568 | ||
|
@@ -84,12 +84,20 @@ jobs: | |
apt update && apt install -y cmake | ||
GOPATH=$(go env GOPATH) make | ||
- name: Set up Regal | ||
uses: StyraInc/[email protected] | ||
with: | ||
version: v0.10.1 | ||
|
||
- name: Lint Rego | ||
run: regal lint --format github rules | ||
|
||
- name: setup python | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: 3.10.6 | ||
|
||
# validate control-ID duplications | ||
# validate control-ID duplications | ||
- run: python ./scripts/validations.py | ||
|
||
# generating subsections ids | ||
|
@@ -117,7 +125,7 @@ jobs: | |
path: ${{ env.REGO_ARTIFACT_PATH }}/ | ||
if-no-files-found: error | ||
|
||
# test kubescape with regolibrary artifacts | ||
# test kubescape with regolibrary artifacts | ||
ks-and-rego-test: | ||
uses: kubescape/workflows/.github/workflows/kubescape-cli-e2e-tests.yaml@main | ||
if: | | ||
|
@@ -145,7 +153,7 @@ jobs: | |
]' | ||
DOWNLOAD_ARTIFACT_PATH: ${{ needs.build-and-rego-test.outputs.REGO_ARTIFACT_PATH }} | ||
secrets: inherit | ||
|
||
clean-up: | ||
name: Remove pre-release folder and clean up | ||
runs-on: ubuntu-latest | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
rules/enforce-kubelet-client-tls-authentication-updated/raw.rego
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.