diff --git a/.github/workflows/devskim.yml b/.github/workflows/devskim.yml new file mode 100644 index 000000000..a29f0fd59 --- /dev/null +++ b/.github/workflows/devskim.yml @@ -0,0 +1,34 @@ +# 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: '21 12 * * 4' + +jobs: + lint: + name: DevSkim + runs-on: ubuntu-latest + permissions: + actions: read + contents: read + security-events: write + steps: + - name: Checkout code + uses: actions/checkout@v4 + + - name: Run DevSkim scanner + uses: microsoft/DevSkim-Action@v1 + + - name: Upload DevSkim scan results to GitHub Security tab + uses: github/codeql-action/upload-sarif@v3 + with: + sarif_file: devskim-results.sarif diff --git a/.github/workflows/modern-distributions.yml b/.github/workflows/modern-distributions.yml index 7d6121c6e..2e66709ea 100644 --- a/.github/workflows/modern-distributions.yml +++ b/.github/workflows/modern-distributions.yml @@ -8,6 +8,8 @@ jobs: check: name: Validate tar based distributions changes runs-on: ubuntu-latest + permissions: + contents: read steps: - name: Checkout repo uses: actions/checkout@v4 diff --git a/.github/workflows/winget.yml b/.github/workflows/winget.yml index d8bde2979..e34e73eb3 100644 --- a/.github/workflows/winget.yml +++ b/.github/workflows/winget.yml @@ -1,4 +1,6 @@ name: Publish to WinGet +permissions: + contents: read on: release: