commit
1fed71dc64
4 files changed
+143
No files matched your search
Whitespace-only changes.
@@ -0,0 +1,32 @@
|
||||
name: Scan Vulnerabilities
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
schedule:
|
||||
- cron: "0 2 * * 1" # At 02:00 on Monday
|
||||
push:
|
||||
branches: [main]
|
||||
|
||||
jobs:
|
||||
sbom-upload:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v7
|
||||
|
||||
- name: Generate SBOM using Anchore (CycloneDX)
|
||||
uses: anchore/sbom-action@v0
|
||||
with:
|
||||
format: cyclonedx-json
|
||||
output-file: sbom.json
|
||||
upload-artifact: false
|
||||
|
||||
- name: Upload SBOM to Dependency-Track
|
||||
uses: DependencyTrack/gh-upload-sbom@v4
|
||||
with:
|
||||
server-hostname: "${{ vars.DT_HOSTNAME }}"
|
||||
api-key: "${{ secrets.DT_API_KEY }}"
|
||||
project-name: "${{ github.repository }}"
|
||||
project-version: "latest"
|
||||
bom-filename: "sbom.json"
|
||||
auto-create: true
|
||||
@@ -0,0 +1,40 @@
|
||||
name: Release
|
||||
|
||||
on:
|
||||
push:
|
||||
tags:
|
||||
- "**"
|
||||
|
||||
permissions:
|
||||
contents: write
|
||||
|
||||
concurrency:
|
||||
group: ${{ github.workflow }}-${{ github.ref }}
|
||||
cancel-in-progress: true
|
||||
|
||||
jobs:
|
||||
release:
|
||||
runs-on: ubuntu-latest
|
||||
name: Release
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v7
|
||||
with:
|
||||
fetch-depth: 0
|
||||
|
||||
# Gitea's GITHUB_TOKEN is rejected by api.github.com. Pass a github.com PAT instead.
|
||||
- name: Generate release notes
|
||||
uses: orhun/git-cliff-action@v4
|
||||
with:
|
||||
config: cliff.toml
|
||||
args: --latest --strip header
|
||||
github_token: ${{ secrets.PAT_GITHUB }}
|
||||
env:
|
||||
OUTPUT: release-notes.md
|
||||
|
||||
- name: Create release
|
||||
uses: softprops/action-gh-release@v3
|
||||
with:
|
||||
token: ${{ secrets.RELEASE_TOKEN }}
|
||||
prerelease: true
|
||||
body_path: release-notes.md
|
||||
Reference in new issue
Block a user