Skip to content

Bump actions/attest from 4.1.0 to 4.1.1 #199

Bump actions/attest from 4.1.0 to 4.1.1

Bump actions/attest from 4.1.0 to 4.1.1 #199

Workflow file for this run

# SPDX-FileCopyrightText: 2024 Frans van Dorsselaer
#
# SPDX-License-Identifier: MIT
---
# yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json
name: Build
on:
push:
branches: [main]
pull_request:
branches: [main]
permissions: {}
jobs:
build:
name: Build
runs-on: ubuntu-latest
permissions:
contents: write
issues: read
checks: write
pull-requests: write
id-token: write
attestations: write
env:
NUGET_PACKAGES: ${{ github.workspace }}/.nuget/packages
steps:
- name: Checkout
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
with:
persist-credentials: false
fetch-depth: 0
- name: Setup .NET
uses: actions/setup-dotnet@26b0ec14cb23fa6904739307f278c14f94c95bf1 # v5.4.0
with:
cache: true
cache-dependency-path: |
global.json
'**/Directory.Packages.props'
- name: Restore dependencies
run: |
dotnet restore
- name: Build
run: |
dotnet build --configuration Release --no-restore --binaryLogger:build.binlog
- name: Test
run: |
dotnet test --configuration Release --no-build \
--report-spekt-junit \
--coverage --coverage-output-format cobertura --coverage-output coverage.cobertura.xml
- name: Package
run: |
dotnet pack --configuration Release --no-build
- name: Upload Package Artifact
id: upload
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
with:
name: artifacts
path: |
**/*.nupkg
**/*.snupkg
retention-days: 14
- name: Build Attestation
uses: actions/attest@a1948c3f048ba23858d222213b7c278aabede763 # v4.1.1
with:
subject-name: artifacts.zip
subject-digest: sha256:${{ steps.upload.outputs.artifact-digest }}
- name: Upload test results to Codecov
if: ${{ !cancelled() }}
uses: codecov/codecov-action@fb8b3582c8e4def4969c97caa2f19720cb33a72f # v7.0.0
with:
fail_ci_if_error: true
report_type: test_results
files: '**/TestResults/TestResults.xml'
disable_search: true
token: ${{ secrets.CODECOV_TOKEN }}
- name: Upload coverage to Codecov
uses: codecov/codecov-action@fb8b3582c8e4def4969c97caa2f19720cb33a72f # v7.0.0
with:
fail_ci_if_error: true
files: '**/TestResults/coverage.cobertura.xml'
disable_search: true
token: ${{ secrets.CODECOV_TOKEN }}
- name: Submit Dependencies to GitHub
uses: advanced-security/component-detection-dependency-submission-action@9c110eb34dee187cd9eca76a652b9f6a0ed22927 # v0.1.1
with:
detectorArgs: MSBuildBinaryLog=Enable
detectorsFilter: MSBuildBinaryLog
- name: Dependency Review
if: github.event_name == 'pull_request'
uses: actions/dependency-review-action@a1d282b36b6f3519aa1f3fc636f609c47dddb294 # v5.0.0
with:
comment-summary-in-pr: always