Skip to content

Commit 9fb77cd

Browse files
authored
Add checksum for latest artifact to metadata file (#147)
1 parent 868b710 commit 9fb77cd

File tree

2 files changed

+13
-1
lines changed

2 files changed

+13
-1
lines changed

.github/workflows/release_build.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ jobs:
109109
"v${{ github.event.inputs.version }}" \
110110
--notes "Release Verions v${{ github.event.inputs.version }}"
111111
112-
- name: Upload artifacts to release
112+
- name: Upload artifacts and checksum to release
113113
env:
114114
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
115115
run: |
@@ -118,15 +118,21 @@ jobs:
118118
find ./artifacts/ -name "*.zip" | while read file; do
119119
base=$(basename "$file")
120120
cp "$file" "$base"
121+
shasum -a 256 $base > $base.sha256
121122
gh release upload "v${{ github.event.inputs.version }}" \
122123
$base \
124+
$base.sha256 \
123125
--clobber
124126
done
127+
shasum -a 256 ./installationScripts/aws-otel-dotnet-install.sh | sed "s|./installationScripts/||" > aws-otel-dotnet-install.sh.sha256
128+
shasum -a 256 ./installationScripts/AWS.Otel.DotNet.Auto.psm1 | sed "s|./installationScripts/||" > AWS.Otel.DotNet.Auto.psm1.sha256
125129
gh release upload "v${{ github.event.inputs.version }}" \
126130
./installationScripts/aws-otel-dotnet-install.sh \
131+
aws-otel-dotnet-install.sh.sha256 \
127132
--clobber
128133
gh release upload "v${{ github.event.inputs.version }}" \
129134
./installationScripts/AWS.Otel.DotNet.Auto.psm1 \
135+
AWS.Otel.DotNet.Auto.psm1.sha256 \
130136
--clobber
131137
132138
release-image:

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,3 +55,9 @@ See [CONTRIBUTING](CONTRIBUTING.md#security-issue-notifications) for more inform
5555
## License
5656

5757
This project is licensed under the Apache-2.0 License.
58+
59+
## Checksum Verification
60+
61+
Artifacts released will include a `.sha256` file for checksum verification starting from v1.5.0
62+
To verify, run the command `shasum -a 256 -c <artifact_name>.sha256`
63+
It should return the output `<artifact_name>: OK` if the validation is successful

0 commit comments

Comments
 (0)