File tree Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change 8585          # rename attest bundle to github-aws-runners-terraform-aws-github-runner-attestation-$attestation-id.sigstore 
8686          # OpenSSF expects the attestation bundle to be named in this format (*.sigstore) 
8787          SIGSTORE_BUNDLE=$RUNNER_TEMP/github-aws-runners-terraform-aws-github-runner-attestation-${ATTESTATION_ID}.sigstore 
88+           INTOTO_BUNDLE=$RUNNER_TEMP/github-aws-runners-terraform-aws-github-runner-attestation-${ATTESTATION_ID}.intoto.json 
8889          mv ${ATTESTATION_BUNDLE} $SIGSTORE_BUNDLE 
8990          if [ -z "$SIGSTORE_BUNDLE" ]; then 
9091            echo "No attestation bundle found, skipping attachment." 
9192            exit 0 
9293          fi 
9394          gh release upload $TAG_NAME "$SIGSTORE_BUNDLE" 
95+           cat ${SIGSTORE_BUNDLE} | jq -r '.dsseEnvelope | select(.payloadType == "application/vnd.in-toto+json").payload' | base64 -d | jq .> ${INTOTO_BUNDLE} 
96+           gh release upload $TAG_NAME "${INTOTO_BUNDLE}" 
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments