Question: I need to implement signature verification for GPG on Gitlab runner side in ( config . toml ) file. I need to check the configuration
I need to implement signature verification for GPG on Gitlab runner side in configtoml file. I need to check the configuration files of gitlabciyml and config.toml files if they correctly configured to implement Signtaure verification on the runner side configtoml Also, as yo usee in the config.toml file, i have asectio nfor my own script. can you help me check the two configuartio nfiles if everything is correct, then give me a script to put in runnerscustom runexec "give me a correct script" For gitlabciyml"stages:
build
verifysignature:
stage: build
script:
gpg verify $CICOMMITREFNAME.sig $CICOMMITREFNAME
tags:
myrunnertag
only:
main # Adjust this to the branch you want to verify" For config.toml runners
name "yourrunnername"
url https:yourgitlab.instance"
token "yourrunnertoken"
executor "shell"
runnerscustombuilddir
runnerscache
runnerscache.s
runnerscache.gcs
runnerscustom
runexec "customrun.sh # This is a placeholder, replace it with your actual custom script path
verifysignature true # Enable GPG signature verification
verifysignaturekey "ABEDABDEDEBDCDF # Replace with your GPG key ID I must get the same picture as here when commiting and pushing something. Running with gitlabrunner f
on stingvirtualmachine WDcyvN system ID: sfeafa
Preparing the "shell" executor
Using Shell bash executor...
Preparing environment
Running on stingvirtualmachine...
Getting source from Git repository
Fetching changes with git depth set to dots
Reinitialized existing Git repository inhomegitlabrunnerbuildswDcyvNorootmyprojectgit
Checking out ffecdfa as detached HEAD ref is main
Skipping Git submodules setup
Executing "stepscript" stage of the job script
$c
gpg: Signature made BC :: MSK
gpg: using RSA key ABEDABDEDEBDCDF
gpg: Good signature from "sting
admin@example.com" unknown
gpg: WARNING: This key is not certified with a trusted signature!
gpg: There is no indication that the signature belongs to the owner.
Primary key fingerprint: ABEDAB DE D EB DCDF
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
