add secrets #1
							
								
								
									
										13
									
								
								action.yml
									
									
									
									
									
								
							
							
						
						
									
										13
									
								
								action.yml
									
									
									
									
									
								
							| @@ -57,14 +57,14 @@ runs: | ||||
|     - name: Retrieve Requested Secrets | ||||
|       shell: sh | ||||
|       run: | | ||||
|         OLDIFS=$IFS | ||||
|         IFS=',' | ||||
|         set -- ${{ inputs.secrets }} | ||||
|         IFS=$OLDIFS | ||||
|         OLDIFS="$IFS" | ||||
|         IFS="," | ||||
|         set -- "${{ inputs.secrets }}" | ||||
|         IFS="$OLDIFS" | ||||
|  | ||||
|         for pair in "$@"; do | ||||
|           SECRET_ID=$(echo "$pair" | cut -d'=' -f1) | ||||
|           ENV_VAR=$(echo "$pair" | cut -d'=' -f2) | ||||
|           SECRET_ID=$(echo "$pair" | cut -d"=" -f1) | ||||
|           ENV_VAR=$(echo "$pair" | cut -d"=" -f2) | ||||
|            | ||||
|           echo "Retrieving secret: $SECRET_ID..." | ||||
|           SECRET_VALUE=$(bw get notes "$SECRET_ID" --session "$BW_SESSION") | ||||
| @@ -76,3 +76,4 @@ runs: | ||||
|             echo "❌ Failed to retrieve secret: $SECRET_ID" | ||||
|           fi | ||||
|         done | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user