Skip to content

Commit

Permalink
chore: add workflow for dependency-track
Browse files Browse the repository at this point in the history
  • Loading branch information
martinakraus committed Jan 28, 2025
1 parent a47f645 commit 1d513a0
Showing 1 changed file with 4 additions and 13 deletions.
17 changes: 4 additions & 13 deletions .github/workflows/generate-and-upload-bom.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,8 @@
name: 'This workflow creates bill of material and uploads it to Dependency-Track each night'

on:
pull_request:
types: ['opened', 'edited', 'reopened', 'synchronize']

# on:
# schedule:
# - cron: '0 0 * * *'
schedule:
- cron: '0 0 * * *'

concurrency:
group: ${{ github.workflow}}-${{ github.ref }}
Expand All @@ -26,14 +22,9 @@ jobs:
with:
node-version: 20.x

- uses: c-hive/gha-yarn-cache@v1
- run: yarn install --frozen-lockfile
- name: Install Dependencies
run: yarn install --frozen-lockfile

- name: Install CycloneDX CLI
run: |
curl -s https://api.github.com/repos/CycloneDX/cyclonedx-cli/releases/latest | grep "browser_download_url.*linux.x64" | cut -d '"' -f 4 | wget -i -
sudo mv cyclonedx-linux-x64 /usr/local/bin/
sudo chmod +x /usr/local/bin/cyclonedx-linux-x64
- name: Generate BOMs
run: |
npm install -g @cyclonedx/cdxgen
Expand Down

0 comments on commit 1d513a0

Please sign in to comment.