Find, verify, and analyze leaked credentials
Go credentialsdevsecopsdynamic-analysisprecommitscanningsecretsecret-managementsecretssecuritysecurity-toolstrufflehogverification
fix(git): use `--iso-strict` git arg to prevent locale issue (#4653)
Gleb Haranin6a0bc788d2ca
diff --git a/pkg/gitparse/gitparse.go b/pkg/gitparse/gitparse.goindex 9f5aa417f..920fbbde6 100644--- a/pkg/gitparse/gitparse.go+++ b/pkg/gitparse/gitparse.go@@ -22,7 +22,8 @@ import (const (// defaultDateFormat is the standard date format for git.- defaultDateFormat = "Mon Jan 2 15:04:05 2006 -0700"+ // Uses ISO 8601 format to avoid locale-dependent weekday/month names.+ defaultDateFormat = time.RFC3339// defaultMaxDiffSize is the maximum size for a diff. Larger diffs will be cut off.defaultMaxDiffSize int64 = 2 * 1024 * 1024 * 1024 // 2GB@@ -235,7 +236,7 @@ func (c *Parser) RepoPath("log","--patch", // https://git-scm.com/docs/git-log#Documentation/git-log.txt---patch"--full-history",- "--date=format:%a %b %d %H:%M:%S %Y %z",+ "--date=iso-strict","--pretty=fuller", // https://git-scm.com/docs/git-log#_pretty_formats"--notes", // https://git-scm.com/docs/git-log#Documentation/git-log.txt---notesltrefgt}@@ -278,7 +279,7 @@ func (c *Parser) RepoPath(// Staged parses the output of the `git diff` command for the `source` path.func (c *Parser) Staged(ctx context.Context, source string) (chan *Diff, error) {// Provide the --cached flag to diff to get the diff of the staged changes.- args := []string{"-C", source, "diff", "-p", "--cached", "--full-history", "--diff-filter=AM", "--date=format:%a %b %d %H:%M:%S %Y %z"}+ args := []string{"-C", source, "diff", "-p", "--cached", "--full-history", "--diff-filter=AM", "--date=iso-strict"}cmd := exec.Command("git", args...)@@ -627,7 +628,7 @@ func isAuthorLine(isStaged bool, latestState ParseState, line []byte) bool {return false}-// AuthorDate: Tue Aug 10 15:20:40 2021 +0100+// AuthorDate: 2021-08-10T15:20:40+01:00func isAuthorDateLine(isStaged bool, latestState ParseState, line []byte) bool {if isStaged || latestState != AuthorLine {return falsediff --git a/pkg/gitparse/gitparse_test.go b/pkg/gitparse/gitparse_test.goindex 1003f5d29..e1a966aa2 100644--- a/pkg/gitparse/gitparse_test.go+++ b/pkg/gitparse/gitparse_test.go@@ -121,7 +121,7 @@ func TestLineChecksWithStaged(t *testing.T) {passes: []testCaseLine{{AuthorLine,- []byte("AuthorDate: Tue Jan 18 16:59:18 2022 -0800"),+ []byte("AuthorDate: 2022-01-18T16:59:18-08:00"),},},fails: []testCaseLine{@@ -163,7 +163,7 @@ func TestLineChecksWithStaged(t *testing.T) {passes: []testCaseLine{{CommitterLine,- []byte("CommitDate: Tue Jan 18 16:59:18 2022 -0800"),+ []byte("CommitDate: 2022-01-18T16:59:18-08:00"),},},fails: []testCaseLine{@@ -1051,7 +1051,7 @@ func TestCommitParseFailureRecovery(t *testing.T) {Hash: "df393b4125c2aa217211b2429b8963d0cefcee27",Author: "Stephen <[email protected]>",Committer: "Stephen <[email protected]>",- Date: newTime("Wed Dec 06 14:44:41 2017 -0800"),+ Date: newTime("2017-12-06T14:44:41-08:00"),Message: newStringBuilderValue("Add travis testing\n"),},contentWriter: newBufferWithContent([]byte("language: python\npython:\n - \"2.6\"\n - \"2.7\"\n - \"3.2\"\n - \"3.3\"\n - \"3.4\"\n - \"3.5\"\n - \"3.5-dev\" # 3.5 development branch\n - \"3.6\"\n - \"3.6-dev\" # 3.6 development branch\n - \"3.7-dev\" # 3.7 development branch\n - \"nightly\"\n")),@@ -1062,7 +1062,7 @@ func TestCommitParseFailureRecovery(t *testing.T) {Hash: "3d76a97faad96e0f326afb61c232b9c2a18dca35",Author: "John Smith <[email protected]>",Committer: "John Smith <[email protected]>",- Date: newTime("Tue Jul 11 18:03:54 2023 -0400"),+ Date: newTime("2023-07-11T18:03:54-04:00"),Message: strings.Builder{},},},@@ -1073,7 +1073,7 @@ func TestCommitParseFailureRecovery(t *testing.T) {Hash: "7bd16429f1f708746dabf970e54b05d2b4734997",Author: "John Smith <[email protected]>",Committer: "John Smith <[email protected]>",- Date: newTime("Tue Jul 11 18:10:49 2023 -0400"),+ Date: newTime("2023-07-11T18:10:49-04:00"),Message: newStringBuilderValue("Change file\n"),},contentWriter: newBufferWithContent([]byte("\n\n\n\nSource: https://www.gnu.org/software/diffutils/manual/diffutils.html#An-Example-of-Unified-Format\n")),@@ -1103,7 +1103,7 @@ func TestCommitParseFailureRecoveryBufferedFileWriter(t *testing.T) {Hash: "df393b4125c2aa217211b2429b8963d0cefcee27",Author: "Stephen <[email protected]>",Committer: "Stephen <[email protected]>",- Date: newTime("Wed Dec 06 14:44:41 2017 -0800"),+ Date: newTime("2017-12-06T14:44:41-08:00"),Message: newStringBuilderValue("Add travis testing\n"),},contentWriter: newBufferedFileWriterWithContent([]byte("language: python\npython:\n - \"2.6\"\n - \"2.7\"\n - \"3.2\"\n - \"3.3\"\n - \"3.4\"\n - \"3.5\"\n - \"3.5-dev\" # 3.5 development branch\n - \"3.6\"\n - \"3.6-dev\" # 3.6 development branch\n - \"3.7-dev\" # 3.7 development branch\n - \"nightly\"\n")),@@ -1114,7 +1114,7 @@ func TestCommitParseFailureRecoveryBufferedFileWriter(t *testing.T) {Hash: "3d76a97faad96e0f326afb61c232b9c2a18dca35",Author: "John Smith <[email protected]>",Committer: "John Smith <[email protected]>",- Date: newTime("Tue Jul 11 18:03:54 2023 -0400"),+ Date: newTime("2023-07-11T18:03:54-04:00"),Message: strings.Builder{},},},@@ -1125,7 +1125,7 @@ func TestCommitParseFailureRecoveryBufferedFileWriter(t *testing.T) {Hash: "7bd16429f1f708746dabf970e54b05d2b4734997",Author: "John Smith <[email protected]>",Committer: "John Smith <[email protected]>",- Date: newTime("Tue Jul 11 18:10:49 2023 -0400"),+ Date: newTime("2023-07-11T18:10:49-04:00"),Message: newStringBuilderValue("Change file\n"),},contentWriter: newBufferedFileWriterWithContent([]byte("\n\n\n\nSource: https://www.gnu.org/software/diffutils/manual/diffutils.html#An-Example-of-Unified-Format\n")),@@ -1153,9 +1153,9 @@ func TestCommitParseFailureRecoveryBufferedFileWriter(t *testing.T) {const recoverableCommits = `commit df393b4125c2aa217211b2429b8963d0cefcee27Author: Stephen <[email protected]>-AuthorDate: Wed Dec 06 14:44:41 2017 -0800+AuthorDate: 2017-12-06T14:44:41-08:00Commit: Stephen <[email protected]>-CommitDate: Wed Dec 06 14:44:41 2017 -0800+CommitDate: 2017-12-06T14:44:41-08:00Add travis testing@@ -1195,9 +1195,9 @@ index 00000000..e69de29bcommit 3d76a97faad96e0f326afb61c232b9c2a18dca35 (HEAD -> master)Author: John Smith <[email protected]>-AuthorDate: Tue Jul 11 18:03:54 2023 -0400+AuthorDate: 2023-07-11T18:03:54-04:00Commit: John Smith <[email protected]>-CommitDate: Tue Jul 11 18:03:54 2023 -0400+CommitDate: 2023-07-11T18:03:54-04:00diff --git a/sample.txt b/sample.txtnew file mode 100644@@ -1209,9 +1209,9 @@ index 0000000..af5626bcommit 7bd16429f1f708746dabf970e54b05d2b4734997 (HEAD -> master)Author: John Smith <[email protected]>-AuthorDate: Tue Jul 11 18:10:49 2023 -0400+AuthorDate: 2023-07-11T18:10:49-04:00Commit: John Smith <[email protected]>-CommitDate: Tue Jul 11 18:10:49 2023 -0400+CommitDate: 2023-07-11T18:10:49-04:00Change file@@ -1481,9 +1481,9 @@ func TestMaxCommitSize(t *testing.T) {const commitLog = `commit e50b135fd29e91b2fbb25923797f5ecffe59f359Author: lionzxy <[email protected]>-AuthorDate: Wed Mar 1 18:20:04 2017 +0300+AuthorDate: 2017-03-01T18:20:04+03:00Commit: lionzxy <[email protected]>-CommitDate: Wed Mar 1 18:20:04 2017 +0300+CommitDate: 2017-03-01T18:20:04+03:00Все работает, но он не принимает :(@@ -1505,9 +1505,9 @@ index 85bfb17..89b08b5 100644commit fd6e99e7a80199b76a694603be57c5ade1de18e7Author: Jaliborc <[email protected]>-AuthorDate: Mon Apr 25 16:28:06 2011 +0100+AuthorDate: 2011-04-25T16:28:06+01:00Commit: Jaliborc <[email protected]>-CommitDate: Mon Apr 25 16:28:06 2011 +0100+CommitDate: 2011-04-25T16:28:06+01:00Added Unusable coloring@@ -1548,23 +1548,23 @@ new file mode 160000commit 4727ffb7ad6dc5130bf4b4dd166e00705abdd018 (HEAD -> master)Author: John Smith <[email protected]>-AuthorDate: Tue Jul 11 22:26:11 2023 -0400+AuthorDate: 2023-07-11T22:26:11-04:00Commit: John Smith <[email protected]>-CommitDate: Tue Jul 11 22:26:11 2023 -0400+CommitDate: 2023-07-11T22:26:11-04:00commit c904e0f5cd9f30ae520c66bd5f70806219fe7ca2 (HEAD -> master)Author: John Smith <[email protected]>-AuthorDate: Mon Jul 10 10:17:11 2023 -0400+AuthorDate: 2023-07-10T10:17:11-04:00Commit: John Smith <[email protected]>-CommitDate: Mon Jul 10 10:17:11 2023 -0400+CommitDate: 2023-07-10T10:17:11-04:00Empty Commitcommit 3d76a97faad96e0f326afb61c232b9c2a18dca35 (HEAD -> master)Author: John Smith <[email protected]>-AuthorDate: Tue Jul 11 18:03:54 2023 -0400+AuthorDate: 2023-07-11T18:03:54-04:00Commit: John Smith <[email protected]>-CommitDate: Tue Jul 11 18:03:54 2023 -0400+CommitDate: 2023-07-11T18:03:54-04:00diff --git a/sample.txt b/sample.txtnew file mode 100644@@ -1576,9 +1576,9 @@ index 0000000..af5626bcommit df393b4125c2aa217211b2429b8963d0cefcee27Author: Stephen <[email protected]>-AuthorDate: Wed Dec 06 14:44:41 2017 -0800+AuthorDate: 2017-12-06T14:44:41-08:00Commit: Stephen <[email protected]>-CommitDate: Wed Dec 06 14:44:41 2017 -0800+CommitDate: 2017-12-06T14:44:41-08:00Add travis testing@@ -1618,9 +1618,9 @@ index 00000000..e69de29bcommit 4218c39d99b5f30153f62471c1be1c1596f0a4d4Author: Dustin Decker <[email protected]>-AuthorDate: Thu Jan 13 12:02:24 2022 -0800+AuthorDate: 2022-01-13T12:02:24-08:00Commit: Dustin Decker <[email protected]>-CommitDate: Thu Jan 13 12:02:24 2022 -0800+CommitDate: 2022-01-13T12:02:24-08:00Initial CLI w/ partially implemented Git source and demo detector (#1)@@ -1676,9 +1676,9 @@ index 00000000..7fb2f73ccommit 934cf5d255fd8e28b33f5a6ba64276caf0b284bf (HEAD -> master)Author: John Smith <[email protected]>-AuthorDate: Tue Jul 11 18:43:22 2023 -0400+AuthorDate: 2023-07-11T18:43:22-04:00Commit: John Smith <[email protected]>-CommitDate: Tue Jul 11 18:43:22 2023 -0400+CommitDate: 2023-07-11T18:43:22-04:00Test toFile/plusLine parsing@@ -1694,9 +1694,9 @@ index 0000000..451be67commit 2a5d703b02b52d65c65ee9f7928f158b919ab741Author: Sergey Beryozkin <[email protected]>-AuthorDate: Fri Jul 7 17:44:26 2023 +0100+AuthorDate: 2023-07-07T17:44:26+01:00Commit: Sergey Beryozkin <[email protected]>-CommitDate: Fri Jul 7 17:44:26 2023 +0100+CommitDate: 2023-07-07T17:44:26+01:00Do not refresh OIDC session if the user is requesting logout@@ -1804,9 +1804,9 @@ index 51e1b9a932d..472c2743bc4 100644commit 2a057632d7f5fa3d1c77b9aa037263211c0e0290Author: rjtmahinay <[email protected]>-AuthorDate: Mon Jul 10 01:22:32 2023 +0800+AuthorDate: 2023-07-10T01:22:32+08:00Commit: rjtmahinay <[email protected]>-CommitDate: Mon Jul 10 01:22:32 2023 +0800+CommitDate: 2023-07-10T01:22:32+08:00Add QuarkusApplication javadoc@@ -1824,9 +1824,9 @@ index 350685123d5..87d2220eb98 100644commit bca2d17491015ea1522f34517223b5a366aea73c (HEAD -> master)Author: John Smith <[email protected]>-AuthorDate: Tue Jul 11 18:12:21 2023 -0400+AuthorDate: 2023-07-11T18:12:21-04:00Commit: John Smith <[email protected]>-CommitDate: Tue Jul 11 18:12:21 2023 -0400+CommitDate: 2023-07-11T18:12:21-04:00Delete binary file@@ -1837,9 +1837,9 @@ Binary files a/trufflehog_3.42.0_linux_arm64.tar.gz and /dev/null differcommit afc6dc5d47f28366638da877ecb6b819c69e659bAuthor: John Smith <[email protected]>-AuthorDate: Mon Jul 10 12:21:33 2023 -0400+AuthorDate: 2023-07-10T12:21:33-04:00Commit: John Smith <[email protected]>-CommitDate: Mon Jul 10 12:21:33 2023 -0400+CommitDate: 2023-07-10T12:21:33-04:00Change binary file@@ -1849,9 +1849,9 @@ Binary files a/trufflehog_3.42.0_linux_arm64.tar.gz and b/trufflehog_3.42.0_linucommit 638595917417c5c8a956937b28c5127719023363Author: John Smith <[email protected]>-AuthorDate: Mon Jul 10 12:20:35 2023 -0400+AuthorDate: 2023-07-10T12:20:35-04:00Commit: John Smith <[email protected]>-CommitDate: Mon Jul 10 12:20:35 2023 -0400+CommitDate: 2023-07-10T12:20:35-04:00Add binary file@@ -1862,9 +1862,9 @@ Binary files /dev/null and b/trufflehog_3.42.0_linux_arm64.tar.gz differcommit ce0f5d1fe0272f180ccb660196f439c0c2f4ec8e (HEAD -> master)Author: John Smith <[email protected]>-AuthorDate: Tue Jul 11 18:08:52 2023 -0400+AuthorDate: 2023-07-11T18:08:52-04:00Commit: John Smith <[email protected]>-CommitDate: Tue Jul 11 18:08:52 2023 -0400+CommitDate: 2023-07-11T18:08:52-04:00Delete file@@ -1888,9 +1888,9 @@ index 635ef2c..0000000commit d606a729383371558473b70a6a7b1ca264b0d205Author: John Smith <[email protected]>-AuthorDate: Mon Jul 10 14:17:04 2023 -0400+AuthorDate: 2023-07-10T14:17:04-04:00Commit: John Smith <[email protected]>-CommitDate: Mon Jul 10 14:17:04 2023 -0400+CommitDate: 2023-07-10T14:17:04-04:00Rename file@@ -1901,9 +1901,9 @@ rename to tzu.txtcommit 7bd16429f1f708746dabf970e54b05d2b4734997 (HEAD -> master)Author: John Smith <[email protected]>-AuthorDate: Tue Jul 11 18:10:49 2023 -0400+AuthorDate: 2023-07-11T18:10:49-04:00Commit: John Smith <[email protected]>-CommitDate: Tue Jul 11 18:10:49 2023 -0400+CommitDate: 2023-07-11T18:10:49-04:00Change file@@ -1920,9 +1920,9 @@ index 5af88a8..c729cdb 100644commit c7062674c17192caa284615ab2fa9778c6602164 (HEAD -> master)Author: John Smith <[email protected]>-AuthorDate: Mon Jul 10 10:15:18 2023 -0400+AuthorDate: 2023-07-10T10:15:18-04:00Commit: John Smith <[email protected]>-CommitDate: Mon Jul 10 10:15:18 2023 -0400+CommitDate: 2023-07-10T10:15:18-04:00Create files@@ -1985,7 +1985,7 @@ func expectedDiffs() []*Diff {Hash: "e50b135fd29e91b2fbb25923797f5ecffe59f359",Author: "lionzxy <[email protected]>",Committer: "lionzxy <[email protected]>",- Date: newTime("Wed Mar 1 18:20:04 2017 +0300"),+ Date: newTime("2017-03-01T18:20:04+03:00"),Message: newStringBuilderValue("Все работает, но он не принимает :(\n"),},contentWriter: newBufferWithContent([]byte("\n\n\n <state relative-caret-position=\"72\">\n <caret line=\"4\" column=\"0\" lean-forward=\"false\" selection-start-line=\"4\" selection-start-column=\"0\" selection-end-line=\"4\" selection-end-column=\"0\" />\n\n\n\n")),@@ -1998,7 +1998,7 @@ func expectedDiffs() []*Diff {Hash: "fd6e99e7a80199b76a694603be57c5ade1de18e7",Author: "Jaliborc <[email protected]>",Committer: "Jaliborc <[email protected]>",- Date: newTime("Mon Apr 25 16:28:06 2011 +0100"),+ Date: newTime("2011-04-25T16:28:06+01:00"),Message: newStringBuilderValue("Added Unusable coloring\n\nNotes:\nMessage-Id: <[email protected]>\n"),},contentWriter: newBufferWithContent([]byte("\n\nlocal Unfit = LibStub('Unfit-1.0')\n\n\n")),@@ -2012,7 +2012,7 @@ func expectedDiffs() []*Diff {Hash: "fd6e99e7a80199b76a694603be57c5ade1de18e7",Author: "Jaliborc <[email protected]>",Committer: "Jaliborc <[email protected]>",- Date: newTime("Mon Apr 25 16:28:06 2011 +0100"),+ Date: newTime("2011-04-25T16:28:06+01:00"),Message: newStringBuilderValue("Added Unusable coloring\n\nNotes:\nMessage-Id: <[email protected]>\n"),},IsBinary: false,@@ -2025,7 +2025,7 @@ func expectedDiffs() []*Diff {Hash: "fd6e99e7a80199b76a694603be57c5ade1de18e7",Author: "Jaliborc <[email protected]>",Committer: "Jaliborc <[email protected]>",- Date: newTime("Mon Apr 25 16:28:06 2011 +0100"),+ Date: newTime("2011-04-25T16:28:06+01:00"),Message: newStringBuilderValue("Added Unusable coloring\n\nNotes:\nMessage-Id: <[email protected]>\n"),},IsBinary: false,@@ -2035,7 +2035,7 @@ func expectedDiffs() []*Diff {Hash: "4727ffb7ad6dc5130bf4b4dd166e00705abdd018",Author: "John Smith <[email protected]>",Committer: "John Smith <[email protected]>",- Date: newTime("Tue Jul 11 22:26:11 2023 -0400"),+ Date: newTime("2023-07-11T22:26:11-04:00"),Message: strings.Builder{},},},@@ -2044,7 +2044,7 @@ func expectedDiffs() []*Diff {Hash: "c904e0f5cd9f30ae520c66bd5f70806219fe7ca2",Author: "John Smith <[email protected]>",Committer: "John Smith <[email protected]>",- Date: newTime("Mon Jul 10 10:17:11 2023 -0400"),+ Date: newTime("2023-07-10T10:17:11-04:00"),Message: newStringBuilderValue("Empty Commit\n"),},},@@ -2056,7 +2056,7 @@ func expectedDiffs() []*Diff {Hash: "3d76a97faad96e0f326afb61c232b9c2a18dca35",Author: "John Smith <[email protected]>",Committer: "John Smith <[email protected]>",- Date: newTime("Tue Jul 11 18:03:54 2023 -0400"),+ Date: newTime("2023-07-11T18:03:54-04:00"),Message: strings.Builder{},},IsBinary: false,@@ -2069,7 +2069,7 @@ func expectedDiffs() []*Diff {Hash: "df393b4125c2aa217211b2429b8963d0cefcee27",Author: "Stephen <[email protected]>",Committer: "Stephen <[email protected]>",- Date: newTime("Wed Dec 06 14:44:41 2017 -0800"),+ Date: newTime("2017-12-06T14:44:41-08:00"),Message: newStringBuilderValue("Add travis testing\n"),},IsBinary: false,@@ -2081,7 +2081,7 @@ func expectedDiffs() []*Diff {Hash: "df393b4125c2aa217211b2429b8963d0cefcee27",Author: "Stephen <[email protected]>",Committer: "Stephen <[email protected]>",- Date: newTime("Wed Dec 06 14:44:41 2017 -0800"),+ Date: newTime("2017-12-06T14:44:41-08:00"),Message: newStringBuilderValue("Add travis testing\n"),},contentWriter: newBufferWithContent([]byte(`language: python@@ -2107,7 +2107,7 @@ python:Hash: "4218c39d99b5f30153f62471c1be1c1596f0a4d4",Author: "Dustin Decker <[email protected]>",Committer: "Dustin Decker <[email protected]>",- Date: newTime("Thu Jan 13 12:02:24 2022 -0800"),+ Date: newTime("2022-01-13T12:02:24-08:00"),Message: newStringBuilderValue("Initial CLI w/ partially implemented Git source and demo detector (#1)\n"),},contentWriter: newBufferWithContent([]byte(`PROTOS_IMAGE=us-docker.pkg.dev/thog-artifacts/public/go-ci-1.17-1@@ -2152,7 +2152,7 @@ protos:Hash: "934cf5d255fd8e28b33f5a6ba64276caf0b284bf",Author: "John Smith <[email protected]>",Committer: "John Smith <[email protected]>",- Date: newTime("Tue Jul 11 18:43:22 2023 -0400"),+ Date: newTime("2023-07-11T18:43:22-04:00"),Message: newStringBuilderValue("Test toFile/plusLine parsing\n"),},contentWriter: newBufferWithContent([]byte("-- test\n++ test\n\n")),@@ -2165,7 +2165,7 @@ protos:Hash: "2a5d703b02b52d65c65ee9f7928f158b919ab741",Author: "Sergey Beryozkin <[email protected]>",Committer: "Sergey Beryozkin <[email protected]>",- Date: newTime("Fri Jul 7 17:44:26 2023 +0100"),+ Date: newTime("2023-07-07T17:44:26+01:00"),Message: newStringBuilderValue("Do not refresh OIDC session if the user is requesting logout\n"),},contentWriter: newBufferWithContent([]byte("\n\n public boolean containsTokenVerification(String token) {\n return cacheMap.containsKey(token);\n }\n\n\n\n\n")),@@ -2178,7 +2178,7 @@ protos:Hash: "2a5d703b02b52d65c65ee9f7928f158b919ab741",Author: "Sergey Beryozkin <[email protected]>",Committer: "Sergey Beryozkin <[email protected]>",- Date: newTime("Fri Jul 7 17:44:26 2023 +0100"),+ Date: newTime("2023-07-07T17:44:26+01:00"),Message: newStringBuilderValue("Do not refresh OIDC session if the user is requesting logout\n"),},contentWriter: newBufferWithContent([]byte("\n\n private boolean isRpInitiatedLogout(RoutingContext context, TenantConfigContext configContext) {\n\n\n")),@@ -2191,7 +2191,7 @@ protos:Hash: "2a5d703b02b52d65c65ee9f7928f158b919ab741",Author: "Sergey Beryozkin <[email protected]>",Committer: "Sergey Beryozkin <[email protected]>",- Date: newTime("Fri Jul 7 17:44:26 2023 +0100"),+ Date: newTime("2023-07-07T17:44:26+01:00"),Message: newStringBuilderValue("Do not refresh OIDC session if the user is requesting logout\n"),},contentWriter: newBufferWithContent([]byte("\n\n\n\n private class LogoutCall implements Function<SecurityIdentity, Uni<?>> {\n RoutingContext context;\n TenantConfigContext configContext;\n String idToken;\n\n LogoutCall(RoutingContext context, TenantConfigContext configContext, String idToken) {\n this.context = context;\n this.configContext = configContext;\n this.idToken = idToken;\n }\n\n @Override\n public Uni<Void> apply(SecurityIdentity identity) {\n if (isRpInitiatedLogout(context, configContext)) {\n LOG.debug(\"Performing an RP initiated logout\");\n fireEvent(SecurityEvent.Type.OIDC_LOGOUT_RP_INITIATED, identity);\n return buildLogoutRedirectUriUni(context, configContext, idToken);\n }\n if (isBackChannelLogoutPendingAndValid(configContext, identity)\n || isFrontChannelLogoutValid(context, configContext,\n identity)) {\n return removeSessionCookie(context, configContext.oidcConfig)\n .map(new Function<Void, Void>() {\n @Override\n public Void apply(Void t) {\n throw new LogoutException();\n }\n });\n\n }\n return VOID_UNI;\n }\n }\n\n")),@@ -2204,7 +2204,7 @@ protos:Hash: "2a5d703b02b52d65c65ee9f7928f158b919ab741",Author: "Sergey Beryozkin <[email protected]>",Committer: "Sergey Beryozkin <[email protected]>",- Date: newTime("Fri Jul 7 17:44:26 2023 +0100"),+ Date: newTime("2023-07-07T17:44:26+01:00"),Message: newStringBuilderValue("Do not refresh OIDC session if the user is requesting logout\n"),},contentWriter: newBufferWithContent([]byte("\n\n\nquarkus.oidc.code-flow.token.refresh-expired=true\nquarkus.oidc.code-flow.token.refresh-token-time-skew=5M\n\n\n")),@@ -2218,7 +2218,7 @@ protos:Hash: "2a5d703b02b52d65c65ee9f7928f158b919ab741",Author: "Sergey Beryozkin <[email protected]>",Committer: "Sergey Beryozkin <[email protected]>",- Date: newTime("Fri Jul 7 17:44:26 2023 +0100"),+ Date: newTime("2023-07-07T17:44:26+01:00"),Message: newStringBuilderValue("Do not refresh OIDC session if the user is requesting logout\n"),},contentWriter: newBufferWithContent([]byte("\n\n\n\n\n\n")),@@ -2231,7 +2231,7 @@ protos:Hash: "2a5d703b02b52d65c65ee9f7928f158b919ab741",Author: "Sergey Beryozkin <[email protected]>",Committer: "Sergey Beryozkin <[email protected]>",- Date: newTime("Fri Jul 7 17:44:26 2023 +0100"),+ Date: newTime("2023-07-07T17:44:26+01:00"),Message: newStringBuilderValue("Do not refresh OIDC session if the user is requesting logout\n"),},contentWriter: newBufferWithContent([]byte("\n\n // Logout\n\n\n\n")),@@ -2244,7 +2244,7 @@ protos:Hash: "2a057632d7f5fa3d1c77b9aa037263211c0e0290",Author: "rjtmahinay <[email protected]>",Committer: "rjtmahinay <[email protected]>",- Date: newTime("Mon Jul 10 01:22:32 2023 +0800"),+ Date: newTime("2023-07-10T01:22:32+08:00"),Message: newStringBuilderValue("Add QuarkusApplication javadoc\n\n* Fix #34463\n"),},contentWriter: newBufferWithContent([]byte("/**\n * This is usually used for command mode applications with a startup logic. The logic is executed inside\n * {@link QuarkusApplication#run} method before the main application exits.\n */\n")),@@ -2255,7 +2255,7 @@ protos:Hash: "bca2d17491015ea1522f34517223b5a366aea73c",Author: "John Smith <[email protected]>",Committer: "John Smith <[email protected]>",- Date: newTime("Tue Jul 11 18:12:21 2023 -0400"),+ Date: newTime("2023-07-11T18:12:21-04:00"),Message: newStringBuilderValue("Delete binary file\n"),},},@@ -2265,7 +2265,7 @@ protos:Hash: "afc6dc5d47f28366638da877ecb6b819c69e659b",Author: "John Smith <[email protected]>",Committer: "John Smith <[email protected]>",- Date: newTime("Mon Jul 10 12:21:33 2023 -0400"),+ Date: newTime("2023-07-10T12:21:33-04:00"),Message: newStringBuilderValue("Change binary file\n"),},contentWriter: newBufferWithContent([]byte("")),@@ -2277,7 +2277,7 @@ protos:Hash: "638595917417c5c8a956937b28c5127719023363",Author: "John Smith <[email protected]>",Committer: "John Smith <[email protected]>",- Date: newTime("Mon Jul 10 12:20:35 2023 -0400"),+ Date: newTime("2023-07-10T12:20:35-04:00"),Message: newStringBuilderValue("Add binary file\n"),},contentWriter: newBufferWithContent([]byte("")),@@ -2288,7 +2288,7 @@ protos:Hash: "ce0f5d1fe0272f180ccb660196f439c0c2f4ec8e",Author: "John Smith <[email protected]>",Committer: "John Smith <[email protected]>",- Date: newTime("Tue Jul 11 18:08:52 2023 -0400"),+ Date: newTime("2023-07-11T18:08:52-04:00"),Message: newStringBuilderValue("Delete file\n"),},},@@ -2297,7 +2297,7 @@ protos:Hash: "d606a729383371558473b70a6a7b1ca264b0d205",Author: "John Smith <[email protected]>",Committer: "John Smith <[email protected]>",- Date: newTime("Mon Jul 10 14:17:04 2023 -0400"),+ Date: newTime("2023-07-10T14:17:04-04:00"),Message: newStringBuilderValue("Rename file\n"),},},@@ -2308,7 +2308,7 @@ protos:Hash: "7bd16429f1f708746dabf970e54b05d2b4734997",Author: "John Smith <[email protected]>",Committer: "John Smith <[email protected]>",- Date: newTime("Tue Jul 11 18:10:49 2023 -0400"),+ Date: newTime("2023-07-11T18:10:49-04:00"),Message: newStringBuilderValue("Change file\n"),},contentWriter: newBufferWithContent([]byte("\n\n\n\nSource: https://www.gnu.org/software/diffutils/manual/diffutils.html#An-Example-of-Unified-Format\n")),@@ -2321,7 +2321,7 @@ protos:Hash: "c7062674c17192caa284615ab2fa9778c6602164",Author: "John Smith <[email protected]>",Committer: "John Smith <[email protected]>",- Date: newTime("Mon Jul 10 10:15:18 2023 -0400"),+ Date: newTime("2023-07-10T10:15:18-04:00"),Message: newStringBuilderValue("Create files\n"),},contentWriter: newBufferWithContent([]byte("The Way that can be told of is not the eternal Way;\nThe name that can be named is not the eternal name.\nThe Nameless is the origin of Heaven and Earth;\nThe Named is the mother of all things.\nTherefore let there always be non-being,\n so we may see their subtlety,\nAnd let there always be being,\n so we may see their outcome.\nThe two are the same,\nBut after they are produced,\n they have different names.\n")),@@ -2334,7 +2334,7 @@ protos:Hash: "c7062674c17192caa284615ab2fa9778c6602164",Author: "John Smith <[email protected]>",Committer: "John Smith <[email protected]>",- Date: newTime("Mon Jul 10 10:15:18 2023 -0400"),+ Date: newTime("2023-07-10T10:15:18-04:00"),Message: newStringBuilderValue("Create files\n"),},contentWriter: newBufferWithContent([]byte("The Nameless is the origin of Heaven and Earth;\nThe named is the mother of all things.\n\nTherefore let there always be non-being,\n so we may see their subtlety,\nAnd let there always be being,\n so we may see their outcome.\nThe two are the same,\nBut after they are produced,\n they have different names.\nThey both may be called deep and profound.\nDeeper and more profound,\nThe door of all subtleties!\n")),@@ -2470,9 +2470,9 @@ index 0000000..5af88a8const singleCommitMultiDiff = `commit 70001020fab32b1fcf2f1f0e5c66424eae649826 (HEAD -> master, origin/master, origin/HEAD)Author: Dustin Decker <[email protected]>-AuthorDate: Mon Mar 15 23:27:16 2021 -0700+AuthorDate: 2021-03-15T23:27:16-07:00Commit: Dustin Decker <[email protected]>-CommitDate: Mon Mar 15 23:27:16 2021 -0700+CommitDate: 2021-03-15T23:27:16-07:00Update aws@@ -2513,9 +2513,9 @@ index 239b415..2ee133b 100644const singleCommitSingleDiff = `commit 70001020fab32b1fcf2f1f0e5c66424eae649826 (HEAD -> master, origin/master, origin/HEAD)Author: Dustin Decker <[email protected]>-AuthorDate: Mon Mar 15 23:27:16 2021 -0700+AuthorDate: 2021-03-15T23:27:16-07:00Commit: Dustin Decker <[email protected]>-CommitDate: Mon Mar 15 23:27:16 2021 -0700+CommitDate: 2021-03-15T23:27:16-07:00Update aws