Skip to content

Commit 7ba9129

Browse files
Merge pull request #80 from step-security/use-sha256
Use sha256
2 parents 516e29d + 2895c77 commit 7ba9129

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

eventhandler.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ package main
22

33
import (
44
"context"
5-
"crypto/sha1"
5+
"crypto/sha256"
66
"fmt"
77
"io"
88
"io/ioutil"
@@ -157,7 +157,7 @@ func getProgramChecksum(path string) (string, error) {
157157
}
158158
defer f.Close()
159159

160-
h := sha1.New()
160+
h := sha256.New()
161161
if _, err := io.Copy(h, f); err != nil {
162162
return err.Error(), err
163163
}

0 commit comments

Comments
 (0)