Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(fips): add signing script for packages to build img #109

Merged
merged 1 commit into from
Jan 20, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion build/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,6 @@ ENV GOFLAGS="-buildvcs=false"
# Since the user does not match the owners of the repo "git rev-parse --is-inside-work-tree" fails and goreleaser does not populate projectName
# https://stackoverflow.com/questions/72978485/git-submodule-update-failed-with-fatal-detected-dubious-ownership-in-repositor
RUN git config --global --add safe.directory '*'
COPY ./sign.sh ./sign_deb.exp ./sign_rpm.exp ./sign_tar.exp /usr/local/bin
COPY ./build/sign.sh ./build/sign_deb.exp ./build/sign_rpm.exp ./build/sign_tar.exp /usr/local/bin/
RUN curl -L https://github.com/cli/cli/releases/download/v${GH_VERSION}/gh_${GH_VERSION}_linux_amd64.deb -o gh_${GH_VERSION}_linux_amd64.deb
RUN dpkg -i gh_${GH_VERSION}_linux_amd64.deb
6 changes: 3 additions & 3 deletions build/sign.sh
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ sles_regex="(.*sles12.*)"
for rpm_file in $(find -regex ".*\.\(rpm\)");do
echo "===> Signing $rpm_file"

./sign_rpm.exp $rpm_file ${GPG_PASSPHRASE}
sign_rpm.exp $rpm_file ${GPG_PASSPHRASE}

echo "===> Sign verification $rpm_file"
rpm -v --checksig $rpm_file
Expand All @@ -63,7 +63,7 @@ for deb_file in $(find -regex ".*\.\(deb\)"); do
echo "===> Signing $deb_file"

# Run the sign_deb.exp script to sign the .deb file
./sign_deb.exp $deb_file ${GPG_PASSPHRASE} ${GPG_MAIL}
sign_deb.exp $deb_file ${GPG_PASSPHRASE} ${GPG_MAIL}


echo "===> Sign verification $deb_file"
Expand All @@ -73,7 +73,7 @@ done
# Sign TARGZ files
for targz_file in $(find . -type f -name "*.tar.gz"); do
echo "===> Signing $targz_file"
./sign_tar.exp $targz_file ${GPG_PASSPHRASE}
sign_tar.exp $targz_file ${GPG_PASSPHRASE}
asc_file="${targz_file}.asc"
if [ -f "$asc_file" ]; then
echo "===> Sign verification $targz_file"
Expand Down
Loading