diff --git a/conf.toml b/conf.toml index 6ab0f82..30a18c0 100644 --- a/conf.toml +++ b/conf.toml @@ -4,14 +4,14 @@ name = "healthcheck" [stages.executor] name = "sandbox" [stages.executor.with.default] -args = ["bash", "./stdin.sh"] +args = ["./healthcheck", "-root=.", "-meta=changelog", "-whitelist=stderr", "-whitelist=stdout", "-whitelist=.*\\.toml", "-whitelist=.*\\.md", "-whitelist=healthcheck", "-whitelist=.*\\.json", "-whitelist=.git.*"] env = ["PATH=/usr/bin:/bin"] cpuLimit = 10_000_000_000 memoryLimit = 104_857_600 procLimit = 50 copyInCwd = true [stages.executor.with.default.copyIn.healthcheck] -src = "./../../../build/healthcheck" +src = "./../../../../../../build/healthcheck" copyOut = ["stdout", "stderr"] [stages.executor.with.default.stdin] content = "" @@ -26,3 +26,4 @@ name = "healthcheck" [stages.parser.with] score = 10 comment = " + comment from toml conf" + diff --git a/expected.json b/expected.json index 41c1fd7..7e1ecd0 100644 --- a/expected.json +++ b/expected.json @@ -1,51 +1,37 @@ [ - { - "name of check": "RepoSize", - "stdout": "Checking repository size: OK", - "exit code": 0, - "stderr": "", - "errorLog": null - }, - { - "name of check": "forbiddenFile", - "stdout": "Checking forbidden files: Failed", - "exit code": 101, - "stderr": "103the following forbidden files were found: examples/healthcheck/meta/conf.toml, examples/healthcheck/meta/expected.json, examples/healthcheck/meta/stdin.sh, \n\nTo fix it, first make a backup of your repository and then run the following commands:\nfor i in examples/healthcheck/meta/conf.toml examples/healthcheck/meta/expected.json examples/healthcheck/meta/stdin.sh ; do git filter-repo --force --invert-paths --path \\\"\\$i\\\"; done\ngit remote add origin \ngit push --set-upstream origin --force", - "errorLog": null - }, - { - "name of check": "metaFile", - "stdout": "Checking the existence of meta file: OK", - "exit code": 0, - "stderr": "", - "errorLog": null - }, - { - "name of check": "NonAsciiFiles", - "stdout": "Checking for non-ascii files: OK", - "exit code": 0, - "stderr": "", - "errorLog": null - }, - { - "name of check": "NonAsciiMsg", - "stdout": "Checking for non-ASCII characters in commit message: OK", - "exit code": 0, - "stderr": "", - "errorLog": null - }, - { - "name of check": "ReleaseCheck", - "stdout": "Failed", - "exit code": 107, - "stderr": "wrong release tag, please use one of aborting", - "errorLog": null - }, - { - "name of check": "verifyFile", - "stdout": "Checking files to be verified: FailedFailedFailedFailedFailed!", - "exit code": 101, - "stderr": "File is not identicalFile missingFile missingFile missing", - "errorLog": null - } -] \ No newline at end of file + { + "name of check": "RepoSize", + "stdout": "Checking repository size: OK", + "exit code": 0, + "stderr": "", + "errorLog": null + }, + { + "name of check": "forbiddenFile", + "stdout": "Checking forbidden files: Failed", + "exit code": 101, + "stderr": "103the following forbidden files were found: examples/healthcheck/meta/conf.toml, examples/healthcheck/meta/expected.json, examples/healthcheck/meta/stdin.sh, \n\nTo fix it, first make a backup of your repository and then run the following commands:\nfor i in examples/healthcheck/meta/conf.toml examples/healthcheck/meta/expected.json examples/healthcheck/meta/stdin.sh ; do git filter-repo --force --invert-paths --path \\\"\\$i\\\"; done\ngit remote add origin \ngit push --set-upstream origin --force", + "errorLog": null + }, + { + "name of check": "metaFile", + "stdout": "Checking the existence of meta file: OK", + "exit code": 0, + "stderr": "", + "errorLog": null + }, + { + "name of check": "NonAsciiFiles", + "stdout": "Checking for non-ascii files: OK", + "exit code": 0, + "stderr": "", + "errorLog": null + }, + { + "name of check": "NonAsciiMsg", + "stdout": "Checking for non-ASCII characters in commit message: OK", + "exit code": 0, + "stderr": "", + "errorLog": null + } +]