Skip to content

Commit

Permalink
upload to s3
Browse files Browse the repository at this point in the history
  • Loading branch information
Sayali M authored and Sayali M committed Nov 12, 2024
1 parent 6e3ef63 commit 103a1a1
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions .github/workflows/generate-upload-fossa-report.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand All @@ -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:
Expand Down

0 comments on commit 103a1a1

Please sign in to comment.