File tree Expand file tree Collapse file tree 3 files changed +33
-0
lines changed
scripts/push-to-chocolatey Expand file tree Collapse file tree 3 files changed +33
-0
lines changed Original file line number Diff line number Diff line change
1
+ VERIFICATION
2
+ Verification is intended to assist the Chocolatey moderators and community
3
+ in verifying that this package's contents are trustworthy.
4
+
5
+ 1. Go to the releases page and download the windows package for the relevant version:
6
+ https://github.com/GitGuardian/ggshield/releases
7
+
8
+ 2. Extract the archive
9
+
10
+ 3. Get the hashes from both the downloaded release and the choco package. The hashes should match.
11
+
12
+ To verify all files, you can use the following powershell script:
13
+
14
+ $folder1 = "C:\Absolute\Path\To\Folder1"
15
+ $folder2 = "C:\Absolute\Path\To\Folder2"
16
+
17
+ $hashes1 = Get-ChildItem -Path $folder1 -Recurse -File | ForEach-Object {
18
+ [PSCustomObject]@{
19
+ RelativePath = $_.FullName.Substring($folder1.Length).TrimStart('\')
20
+ Hash = (Get-FileHash $_.FullName).Hash
21
+ }
22
+ }
23
+
24
+ $hashes2 = Get-ChildItem -Path $folder2 -Recurse -File | ForEach-Object {
25
+ [PSCustomObject]@{
26
+ RelativePath = $_.FullName.Substring($folder2.Length).TrimStart('\')
27
+ Hash = (Get-FileHash $_.FullName).Hash
28
+ }
29
+ }
30
+
31
+ Compare-Object -ReferenceObject $hashes1 -DifferenceObject $hashes2 -Property RelativePath, Hash
Original file line number Diff line number Diff line change 11
11
<licenseUrl >https://raw.githubusercontent.com/GitGuardian/ggshield/refs/heads/main/LICENSE</licenseUrl >
12
12
<requireLicenseAcceptance >false</requireLicenseAcceptance >
13
13
<projectSourceUrl >https://github.com/GitGuardian/ggshield</projectSourceUrl >
14
+ <packageSourceUrl >https://github.com/GitGuardian/ggshield/tree/main/scripts/push-to-chocolatey</packageSourceUrl >
14
15
<docsUrl >https://docs.gitguardian.com/ggshield-docs/getting-started</docsUrl >
15
16
<tags >ggshield</tags >
16
17
<summary >ggshield is a CLI application that helps you detect secrets.</summary >
Original file line number Diff line number Diff line change @@ -26,6 +26,7 @@ mkdir ggshield-package/tools
26
26
mv packages/* /_internal ggshield-package/tools
27
27
mv packages/* /ggshield.exe ggshield-package/tools
28
28
cp scripts/push-to-chocolatey/ggshield.nuspec ggshield-package
29
+ cp scripts/push-to-chocolatey/VERIFICATION.txt ggshield-package
29
30
sed -i " s/__VERSION__/$version /" ggshield-package/ggshield.nuspec
30
31
31
32
cd ggshield-package
You can’t perform that action at this time.
0 commit comments