Skip to content

use github action to avoid downloadThenRun scorecard warning #3238

use github action to avoid downloadThenRun scorecard warning

use github action to avoid downloadThenRun scorecard warning #3238

Workflow file for this run

name: DevSkim
permissions: read-all
on:
push:
branches: [master, v2.dev, v3.dev]
pull_request:
branches: [master, v2.dev, v3.dev]
schedule:
- cron: '40 22 * * 0'
jobs:
lint:
name: DevSkim
runs-on: ubuntu-20.04
permissions:
actions: read
contents: read
security-events: write
steps:
- name: Harden Runner
uses: step-security/harden-runner@91182cccc01eb5e619899d80e4e971d6181294a7 # v2.10.1
with:
disable-sudo: true
egress-policy: block
allowed-endpoints: >
api.github.com:443
github.com:443
- name: Checkout code
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
- name: Run DevSkim scanner
uses: microsoft/DevSkim-Action@914fa647b406c387000300b2f09bb28691be2b6d # v1.0.14
- name: Upload DevSkim scan results to GitHub Security tab
uses: github/codeql-action/upload-sarif@294a9d92911152fe08befb9ec03e240add280cb3 # v3.26.8
with:
sarif_file: devskim-results.sarif