Skip to content

Potential fix for code scanning alert no. 6: Workflow does not contai… #88

Potential fix for code scanning alert no. 6: Workflow does not contai…

Potential fix for code scanning alert no. 6: Workflow does not contai… #88

Workflow file for this run

name: Build
on:
push:
branches:
- "**"
tags:
- "*"
permissions:
checks: write
pull-requests: write
jobs:
validate-version:

Check failure on line 15 in .github/workflows/main.yml

View workflow run for this annotation

GitHub Actions / Build

Invalid workflow file

The workflow is not valid. .github/workflows/main.yml (Line: 15, Col: 3): Error calling workflow 'WB-Tooling/WB.Logging.LogSinks.Base/.github/workflows/validate-version-job.yml@51f0a60ad85fbcba173776960a84bac79f77b200'. The workflow is requesting 'contents: read', but is only allowed 'contents: none'.
name: 🧐 Validate Version
uses: ./.github/workflows/validate-version-job.yml
if: startsWith(github.ref, 'refs/tags/')
build:
name: 🏗️ Build Nuget Package
uses: ./.github/workflows/build-job.yml
with:
dotnet-version: "10.0.x"
use-local-projects: false
create-nuget-package: true
build-against-sources:
name: 🏗️ Build Against Sources
uses: ./.github/workflows/build-job.yml
with:
dotnet-version: "10.0.x"
use-local-projects: true
create-nuget-package: false
test:
name: ✅ Run Tests
uses: ./.github/workflows/test-job.yml
needs: [build, build-against-sources]
with:
dotnet-version: "10.0.x"
publish-nuget:
name: 📦 Publish Nuget Package
uses: ./.github/workflows/publish-nuget-job.yml
needs: [test]
if: startsWith(github.ref, 'refs/tags/')
with:
dotnet-version: "10.0.x"
secrets: inherit