Skip to content

Update .github/workflows/sample-workflow-windows-latest.yml #69

Update .github/workflows/sample-workflow-windows-latest.yml

Update .github/workflows/sample-workflow-windows-latest.yml #69

# pull request action verification
name: OSSAR on-push-verification windows-latest
permissions:
contents: read
on: push
jobs:
sample:
name: Open Source Static Analysis Runner
# OSSAR runs on windows-latest.
# ubuntu-latest and macos-latest supporting coming soon
runs-on: windows-latest
steps:
# Checkout your code repository to scan
- uses: actions/checkout@v2
# Ensure a compatible version of dotnet is installed.
# The [Microsoft Security DevOps CLI](https://aka.ms/msdo-nuget) is built with net6.0
# A version greater than or equal to net6.0 of dotnet must be installed on the agent in order to run this action.
# GitHub hosted runners already have a compatible version of dotnet installed and this step may be skipped.
# For self-hosted runners, ensure dotnet version 3.1.201 or later is installed by including this action:
# - uses: actions/setup-dotnet@v1
# with:
# dotnet-version: '6.0.x'
# Run open source static analysis tools
- name: Run OSSAR
uses: ./
id: ossar
# Upload results to the Security tab
- name: Upload results to Security tab
uses: github/codeql-action/upload-sarif@v2
with:
sarif_file: ${{ steps.ossar.outputs.sarifFile }}