Skip to content

Commit

Permalink
chore: set shell at the top of the job
Browse files Browse the repository at this point in the history
  • Loading branch information
elaguerta-nr committed Jun 3, 2024
1 parent 6a5ce7c commit 684c7af
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions .github/composite/fossa-composite/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ name: 'FOSSA Composite Action'
description: 'Shared action for running FOSSA workflows'
runs:
using: 'composite'
shell: bash
steps:
- id: fossa-list-targets
name: Run fossa list-targets
shell: bash
run: |
curl -H 'Cache-Control: no-cache' https://raw.githubusercontent.com/fossas/fossa-cli/master/install-latest.sh | bash
export LIST_TARGETS_OUT_FILE=${{ runner.temp }}/list-targets_out.txt
Expand All @@ -31,7 +31,6 @@ runs:
- id: fossa-analyze
name: Run fossa analyze
shell: bash
if: ${{ env.HAS_FOSSA_TARGETS == 'True'}}
run: |
export ANALYZE_OUT_FILE=${{ runner.temp }}/analyze_out.txt
Expand All @@ -48,7 +47,6 @@ runs:
fi
- name: Set custom properties
shell: bash
run: |
response=$(curl --write-out '%{http_code}' --silent --output /dev/null \
-L \
Expand All @@ -64,7 +62,6 @@ runs:
echo "::warning::Writing custom properties failed."
fi
- name: Exit
shell: bash
if: ${{ env.HAS_FOSSA_TARGETS == 'Error' || env.FOSSA_ANALYZE_RESULT == 'Error' }}
run: |
echo "::notice::FOSSA - please follow up internally."
Expand Down

0 comments on commit 684c7af

Please sign in to comment.