From 103a1a1f133787dc9ed351e53fee7a284ce51da4 Mon Sep 17 00:00:00 2001 From: Sayali M Date: Tue, 12 Nov 2024 10:52:59 -0600 Subject: [PATCH] upload to s3 --- .github/workflows/generate-upload-fossa-report.yml | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/.github/workflows/generate-upload-fossa-report.yml b/.github/workflows/generate-upload-fossa-report.yml index 1a9855b2..a8f66ae6 100644 --- a/.github/workflows/generate-upload-fossa-report.yml +++ b/.github/workflows/generate-upload-fossa-report.yml @@ -10,6 +10,8 @@ on: jobs: fossa-scan: runs-on: ubuntu-latest + env: + FOSSA_API_KEY: ${{ secrets.FOSSA_API_KEY }} permissions: contents: read packages: write @@ -102,12 +104,8 @@ jobs: - name: Analyze project run: fossa analyze - env: - FOSSA_API_KEY: ${{ secrets.FOSSA_API_KEY }} - name: Generate report - env: - FOSSA_API_KEY: ${{ secrets.FOSSA_API_KEY }} run: | # Run JSON report fossa report attribution --format json > fossa.json @@ -131,7 +129,7 @@ jobs: - name: Upload report to S3 if: always() run: | - aws s3 cp $csv_filename s3://liquibaseorg-origin/enterprise_fossa_report/raw_reports/$csv_filename + aws s3 cp $csv_filename s3://liquibaseorg-origin/enterprise_fossa_report/raw_reports/ # filename="${{ steps.get_repo_name.outputs.repo_name }}.csv" # aws s3 cp /home/runner/work/${{ steps.get_repo_name.outputs.repo_name }}/fossa_reports/$filename s3://liquibaseorg-origin/enterprise_fossa_report/raw_reports/$filename env: