Skip to content
Merged
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: 12 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,19 @@ name: CI

on:
push:
branches: [ main ]
branches: [main]
paths-ignore:
- '**.md'
- "**.md"
pull_request:
branches: [ main ]
branches: [main]
paths-ignore:
- '**.md'
- "**.md"

jobs:
build:
strategy:
matrix:
os: [ ubuntu-latest, windows-latest ]
os: [ubuntu-latest, windows-latest]

runs-on: ${{ matrix.os }}

Expand Down Expand Up @@ -50,6 +50,8 @@ jobs:
permissions:
contents: read
packages: write
id-token: write
attestations: write

runs-on: ubuntu-latest

Expand Down Expand Up @@ -91,3 +93,8 @@ jobs:
with:
name: nupkgs
path: src/**/*.nupkg

- name: Generate artifact attestation
uses: actions/attest-build-provenance@c074443f1aee8d4aeeae555aebba3282517141b2 # v2.2.3
with:
subject-path: "src/**/*.nupkg"
12 changes: 10 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,10 @@ jobs:
release:
runs-on: ubuntu-latest
needs: release-please
permissions:
id-token: write
contents: read
attestations: write
if: ${{ needs.release-please.outputs.release_created }}

steps:
Expand All @@ -56,6 +60,11 @@ jobs:
- name: Publish to Nuget
run: dotnet nuget push "src/**/*.nupkg" --api-key "${{ secrets.NUGET_TOKEN }}" --source https://api.nuget.org/v3/index.json

- name: Generate artifact attestation
uses: actions/attest-build-provenance@c074443f1aee8d4aeeae555aebba3282517141b2 # v2.2.3
with:
subject-path: "src/**/*.nupkg"

sbom:
runs-on: ubuntu-latest
permissions:
Expand Down Expand Up @@ -87,5 +96,4 @@ jobs:
- name: Attach SBOM to artifact
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
run:
gh release upload ${{ needs.release-please.outputs.release_tag_name }} bom.json
run: gh release upload ${{ needs.release-please.outputs.release_tag_name }} bom.json