fix action w/ burnettk

This commit is contained in:
jasquat 2024-08-14 16:39:05 -04:00
parent e0a57301aa
commit fe94c24b5a
No known key found for this signature in database
1 changed files with 23 additions and 21 deletions

View File

@ -28,28 +28,30 @@ outputs:
# - "python"
# - "/wait-for-ecr-scan-and-get-sarif/main.py"
steps:
- name: Check out the repository
uses: actions/checkout@v2
runs:
using: "composite"
steps:
- name: Check out the repository
uses: actions/checkout@v2
- name: Set up Python 3.12
uses: actions/setup-python@v5.1.1
with:
python-version: 3.12
- name: Set up Python 3.12
uses: actions/setup-python@v5.1.1
with:
python-version: 3.12
- name: Install dependencies
run: |
pip install -r /wait-for-ecr-scan-and-get-sarif/requirements.txt
- name: Install dependencies
run: |
pip install -r /wait-for-ecr-scan-and-get-sarif/requirements.txt
- name: Run the Python script to wait for ECR scan and get SARIF
run: |
python /wait-for-ecr-scan-and-get-sarif/main.py \
--repository_name ${{ inputs.repository_name }} \
--image_tag ${{ inputs.image_tag }} \
--aws_region ${{ inputs.aws_region }} \
--output_file ${{ inputs.output_file }}
id: run_script
- name: Run the Python script to wait for ECR scan and get SARIF
run: |
python /wait-for-ecr-scan-and-get-sarif/main.py \
--repository_name ${{ inputs.repository_name }} \
--image_tag ${{ inputs.image_tag }} \
--aws_region ${{ inputs.aws_region }} \
--output_file ${{ inputs.output_file }}
id: run_script
- name: Set the output
run: |
echo "::set-output name=sarif_report::$(cat ${{ inputs.output_file }})"
- name: Set the output
run: |
echo "::set-output name=sarif_report::$(cat ${{ inputs.output_file }})"