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