update
This commit is contained in:
		
							
								
								
									
										14
									
								
								action.yml
									
									
									
									
									
								
							
							
						
						
									
										14
									
								
								action.yml
									
									
									
									
									
								
							@@ -57,18 +57,18 @@ runs:
 | 
				
			|||||||
    - name: Retrieve Requested Secrets
 | 
					    - name: Retrieve Requested Secrets
 | 
				
			||||||
      shell: sh
 | 
					      shell: sh
 | 
				
			||||||
      run: |
 | 
					      run: |
 | 
				
			||||||
        INPUT_SECRETS=$(echo "${{ inputs.secrets }}" | tr '\n' ',')
 | 
					        INPUT_SECRETS=$(echo "${{ inputs.secrets }}" | tr "\n" ",")
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        OLDIFS="$IFS"
 | 
					        OLDIFS="$IFS"
 | 
				
			||||||
        IFS=","
 | 
					        IFS=","
 | 
				
			||||||
        set -- $INPUT_SECRETS
 | 
					        set -- "$INPUT_SECRETS"
 | 
				
			||||||
        IFS="$OLDIFS"
 | 
					        IFS="$OLDIFS"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        for pair in "$@"; do
 | 
					        for pair in "$@"; do
 | 
				
			||||||
          SECRET_ID=$(echo "$pair" | cut -d'>' -f1 | xargs)
 | 
					          SECRET_ID=$(echo "$pair" | cut -d">" -f1 | xargs)
 | 
				
			||||||
          ENV_VAR=$(echo "$pair" | cut -d'>' -f2 | xargs)
 | 
					          ENV_VAR=$(echo "$pair" | cut -d">" -f2 | xargs)
 | 
				
			||||||
          
 | 
					          
 | 
				
			||||||
          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")
 | 
				
			||||||
 | 
					
 | 
				
			||||||
          if [ -n "$SECRET_VALUE" ]; then
 | 
					          if [ -n "$SECRET_VALUE" ]; then
 | 
				
			||||||
@@ -77,6 +77,4 @@ runs:
 | 
				
			|||||||
          else
 | 
					          else
 | 
				
			||||||
            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