Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions .github/workflows/pr-lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: PR Lint

# Conventional Commits on the PR title and every commit on the branch.
# release-please parses those commit types to decide the version bump and to
# build the changelog - a non-conventional commit silently produces neither.
on:
pull_request:
types: [opened, edited, synchronize, reopened]

permissions:
contents: read
pull-requests: read

jobs:
lint:
uses: OneLiteFeatherNET/workflows/.github/workflows/pr-lint.yml@v2.8.1
secrets: inherit
28 changes: 28 additions & 0 deletions .github/workflows/release-please.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,3 +33,31 @@ jobs:
version: ${{ needs.release-please.outputs.version }}
context: "."
secrets: inherit

sbom:
name: Attach SBOM to release
needs: release-please
if: needs.release-please.outputs.release_created == 'true'
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout
uses: actions/checkout@v6
with:
ref: ${{ needs.release-please.outputs.tag_name }}

- name: Generate CycloneDX SBOM
uses: aquasecurity/trivy-action@v0.36.0
with:
scan-type: fs
scan-ref: .
format: cyclonedx
output: bom.json
exit-code: '0'

- name: Attach SBOM to the release
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
TAG: ${{ needs.release-please.outputs.tag_name }}
run: gh release upload "$TAG" bom.json --clobber
3 changes: 3 additions & 0 deletions commitlint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
export default {
extends: ['@commitlint/config-conventional'],
};
13 changes: 10 additions & 3 deletions release-please-config.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,21 @@
"package-name": "sturnus",
"changelog-path": "CHANGELOG.md",
"extra-files": [
{ "type": "generic", "path": "pyproject.toml" },
{ "type": "generic", "path": "charts/sturnus/Chart.yaml" },
{
"type": "generic",
"path": "pyproject.toml"
},
{
"type": "generic",
"path": "charts/sturnus/Chart.yaml"
},
{
"type": "toml",
"path": "uv.lock",
"jsonpath": "$.package[?(@.name.value=='sturnus')].version"
}
]
}
}
},
"bootstrap-sha": "906c6d661be1e22435fc66c7baac92e13cddf535"
}
Loading