| 1 |
# Copyright 2023 The Archivista Contributors |
| 2 |
# |
| 3 |
# Licensed under the Apache License, Version 2.0 (the "License"); |
| 4 |
# you may not use this file except in compliance with the License. |
| 5 |
# You may obtain a copy of the License at |
| 6 |
# |
| 7 |
# http://www.apache.org/licenses/LICENSE-2.0 |
| 8 |
# |
| 9 |
# Unless required by applicable law or agreed to in writing, software |
| 10 |
# distributed under the License is distributed on an "AS IS" BASIS, |
| 11 |
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 12 |
# See the License for the specific language governing permissions and |
| 13 |
# limitations under the License. |
| 14 |
|
| 15 |
name: "Fossa Scan" |
| 16 |
|
| 17 |
on: |
| 18 |
push: |
| 19 |
branches: ["main"] |
| 20 |
pull_request: |
| 21 |
# The branches below must be a subset of the branches above |
| 22 |
branches: ["main"] |
| 23 |
schedule: |
| 24 |
- cron: "0 0 * * 1" |
| 25 |
|
| 26 |
permissions: |
| 27 |
contents: read |
| 28 |
|
| 29 |
jobs: |
| 30 |
fossa-scan: |
| 31 |
env: |
| 32 |
FOSSA_API_KEY: ${{ secrets.fossaApiKey }} |
| 33 |
runs-on: ubuntu-latest |
| 34 |
steps: |
| 35 |
- if: ${{ env.FOSSA_API_KEY != '' }} |
| 36 |
name: "Checkout Code" |
| 37 |
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 |
| 38 |
- if: ${{ env.FOSSA_API_KEY != '' }} |
| 39 |
name: "Run FOSSA Scan" |
| 40 |
uses: fossas/fossa-action@3ebcea1862c6ffbd5cf1b4d0bd6b3fe7bd6f2cac # v1.7.0 |
| 41 |
with: |
| 42 |
api-key: ${{ env.FOSSA_API_KEY }} |