-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch main of https://github.com/slalombuild/secureli into fea…
…ture/secureli-433-update-template-file-hook-before-running-initial-scan
- Loading branch information
Showing
12 changed files
with
105 additions
and
15 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 |
---|---|---|
@@ -1,18 +1,18 @@ | ||
# See https://pre-commit.com for more information | ||
# See https://pre-commit.com/hooks.html for more hooks | ||
repos: | ||
- repo: https://github.com/pre-commit/pre-commit-hooks | ||
rev: v4.6.0 | ||
hooks: | ||
- id: trailing-whitespace | ||
- id: end-of-file-fixer | ||
- id: check-yaml | ||
- id: check-added-large-files | ||
- repo: https://github.com/psf/black-pre-commit-mirror | ||
rev: 24.4.2 | ||
hooks: | ||
- id: black | ||
- repo: https://github.com/yelp/detect-secrets | ||
rev: v1.4.0 | ||
hooks: | ||
- id: detect-secrets | ||
- repo: https://github.com/pre-commit/pre-commit-hooks | ||
rev: v4.6.0 | ||
hooks: | ||
- id: trailing-whitespace | ||
- id: end-of-file-fixer | ||
- id: check-yaml | ||
- id: check-added-large-files | ||
- repo: https://github.com/psf/black-pre-commit-mirror | ||
rev: 24.4.2 | ||
hooks: | ||
- id: black | ||
- repo: https://github.com/yelp/detect-secrets | ||
rev: v1.4.0 | ||
hooks: | ||
- id: detect-secrets |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
using System; | ||
|
||
class Program | ||
{ | ||
static void Main(string[] args) | ||
{ | ||
Console.WriteLine("Hello, world!"); | ||
} | ||
} |
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 |
---|---|---|
@@ -0,0 +1,7 @@ | ||
package main | ||
|
||
import "fmt" | ||
|
||
func main() { | ||
fmt.Println("Hello, world!") | ||
} |
11 changes: 11 additions & 0 deletions
11
tests/end-to-end/test-data/JavaScript_Sample/public/index.html
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 |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
<title>JavaScript_Sample</title> | ||
</head> | ||
<body> | ||
<script src="index.js"></script> | ||
</body> | ||
</html> |
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
console.log("Hello, world!"); |
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
fun main() { println("Hello, world!") } |
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
print("Hello, world!") |
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
print("Hello, world!") |
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
output "hello_world" { value = "Hello, world!" } |
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
console.log("Hello, world!"); |
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 |
---|---|---|
@@ -0,0 +1,56 @@ | ||
setup() { | ||
load "${BATS_LIBS_ROOT}/bats-support/load" | ||
load "${BATS_LIBS_ROOT}/bats-assert/load" | ||
} | ||
|
||
# Tests currently commented out as they have a dependency on test data which will be workied on in a future ticket. In order to run them currently, you would need to go into | ||
# each one of the language repo folder under test-data folder and git initialize them. In the future we wish to automate the creation and git initialization of each one of these | ||
# folders | ||
|
||
#@test "can detect C# language" { | ||
# run python secureli/main.py init -ryd tests/end-to-end/test-data/Csharp_Sample/ | ||
# assert_output --partial '[seCureLI] The following language(s) support secrets detection: C#' | ||
# assert_output --partial '[seCureLI] - C#: 100%' | ||
#} | ||
|
||
#@test "can detect Go language" { | ||
# run python secureli/main.py init -ryd tests/end-to-end/test-data/Go_Sample/ | ||
# assert_output --partial '[seCureLI] - Go: 100%' | ||
# assert_output --partial '[seCureLI] seCureLI has been installed successfully for the following language(s): Go.' | ||
#} | ||
|
||
#@test "can detect Javascript language" { | ||
# run python secureli/main.py init -ryd tests/end-to-end/test-data/JavaScript_Sample/ | ||
# assert_output --partial '[seCureLI] - JavaScript: 100%' | ||
# assert_output --partial '[seCureLI] seCureLI has been installed successfully for the following language(s): JavaScript.' | ||
#} | ||
|
||
#@test "can detect Kotlin language" { | ||
# run python secureli/main.py init -ryd tests/end-to-end/test-data/Kotlin_Sample/ | ||
# assert_output --partial '[seCureLI] - Kotlin: 100%' | ||
# assert_output --partial '[seCureLI] seCureLI has been installed successfully for the following language(s): Kotlin.' | ||
#} | ||
|
||
#@test "can detect Python language" { | ||
# run python secureli/main.py init -ryd tests/end-to-end/test-data/Python_Sample/ | ||
# assert_output --partial '[seCureLI] - Python: 100%' | ||
# assert_output --partial '[seCureLI] seCureLI has been installed successfully for the following language(s): Python.' | ||
#} | ||
|
||
#@test "can detect Swift language" { | ||
# run python secureli/main.py init -ryd tests/end-to-end/test-data/Swift_Sample/ | ||
# assert_output --partial '[seCureLI] seCureLI has been installed successfully for the following language(s): Swift.' | ||
# assert_output --partial '[seCureLI] - Swift: 100%' | ||
#} | ||
|
||
#@test "can detect Terraform language" { | ||
# run python secureli/main.py init -ryd tests/end-to-end/test-data/Terraform_Sample/ | ||
# assert_output --partial '[seCureLI] - Terraform: 100%' | ||
# assert_output --partial '[seCureLI] seCureLI has been installed successfully for the following language(s): Terraform.' | ||
#} | ||
|
||
#@test "can detect Typescript language" { | ||
# run python secureli/main.py init -ryd tests/end-to-end/test-data/Typescript_Sample/ | ||
# assert_output --partial '[seCureLI] - TypeScript: 100%' | ||
# assert_output --partial '[seCureLI] seCureLI has been installed successfully for the following language(s): TypeScript.' | ||
#} |