Skip to content

DEV2-3272 Fossa (#1224) #1

DEV2-3272 Fossa (#1224)

DEV2-3272 Fossa (#1224) #1

Workflow file for this run

name: Fossa attribution report
on:
workflow_dispatch:
push:
branches: [master]
jobs:
attribution:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: fossas/fossa-action@main
with:
api-key: ${{ secrets.FOSSA_API_KEY }}
- name: Create Attribution
run: FOSSA_API_KEY=${{ secrets.FOSSA_API_KEY }} fossa report attribution --format spdx > ATTRIBUTION.spdx
- name: Authneticate with Google Cloud
uses: google-github-actions/auth@v1
with:
credentials_json: ${{ secrets.GCP_BUILDER_SERVICE_ACCOUNT_KEY }}
- name: Set up Cloud SDK
uses: google-github-actions/setup-gcloud@v1
- name: Push to GCS
run: gsutil cp ATTRIBUTION.spdx gs://tabnine-attributions/${{ github.event.repository.name }}.spdx