File: small.txt

package info (click to toggle)
gitleaks 8.16.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,288 kB
  • sloc: makefile: 26; python: 19
file content (67 lines) | stat: -rw-r--r-- 907 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
import (
	"fmt"
	"os"
)
	// seems safer
	aws_token := os.Getenv("AWS_TOKEN")
package foo

import "fmt"

func Foo() {
	fmt.Println("foo")

	// seems safe
	aws_token := "AKIALALEMEL33243OLIA"
	fmt.Println(aws_token)
}
package api

import "fmt"

func PrintHello() {
	fmt.Println("hello")
}
import (
	"fmt"
	"os"
)
	var a = "initial"
	fmt.Println(a)
	var b, c int = 1, 2
	fmt.Println(b, c)
	var d = true
	fmt.Println(d)
	var e int
	fmt.Println(e)
	// load secret via env
	awsToken := os.Getenv("AWS_TOKEN")

	f := "apple"
	fmt.Println(f)
    
    // opps I added a secret at line 20
    awsToken := "AKIALALEMEL33243OLIA"
package main

import "fmt"

func main() {

    var a = "initial"
    fmt.Println(a)

    var b, c int = 1, 2
    fmt.Println(b, c)

    var d = true
    fmt.Println(d)

    var e int
    fmt.Println(e)

    f := "apple"
    fmt.Println(f)
}
# test
This is a repo used for testing gitleaks