2022-11-16 22:55:24 +01:00
|
|
|
# This workflow uses actions that are not certified by GitHub.
|
|
|
|
# They are provided by a third-party and are governed by
|
|
|
|
# separate terms of service, privacy policy, and support
|
|
|
|
# documentation.
|
|
|
|
|
|
|
|
name: DevSkim
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches: [ "master" ]
|
|
|
|
pull_request:
|
|
|
|
branches: [ "master" ]
|
|
|
|
schedule:
|
|
|
|
- cron: '19 5 * * 2'
|
|
|
|
|
2022-11-16 23:09:25 +01:00
|
|
|
permissions:
|
|
|
|
contents: read
|
|
|
|
|
2022-11-16 22:55:24 +01:00
|
|
|
jobs:
|
|
|
|
lint:
|
|
|
|
name: DevSkim
|
|
|
|
runs-on: ubuntu-20.04
|
|
|
|
permissions:
|
|
|
|
actions: read
|
|
|
|
contents: read
|
|
|
|
security-events: write
|
|
|
|
steps:
|
|
|
|
- name: Checkout code
|
2022-11-16 23:09:25 +01:00
|
|
|
uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8
|
2022-11-16 22:55:24 +01:00
|
|
|
|
|
|
|
- name: Run DevSkim scanner
|
2022-11-16 23:09:25 +01:00
|
|
|
uses: microsoft/DevSkim-Action@a8a9e06bab570db990fe7351ae9d4d444b9489ca
|
2022-11-16 22:55:24 +01:00
|
|
|
|
|
|
|
- name: Upload DevSkim scan results to GitHub Security tab
|
2022-11-16 23:09:25 +01:00
|
|
|
uses: github/codeql-action/upload-sarif@678fc3afe258fb2e0cdc165ccf77b85719de7b3c
|
2022-11-16 22:55:24 +01:00
|
|
|
with:
|
|
|
|
sarif_file: devskim-results.sarif
|