mirror of
https://github.com/kopia/kopia.git
synced 2026-07-10 05:35:58 -04:00
Bumps [github/codeql-action/upload-sarif](https://github.com/github/codeql-action) from 4.36.0 to 4.36.2.
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](7211b7c807...8aad20d150)
---
updated-dependencies:
- dependency-name: github/codeql-action/upload-sarif
dependency-version: 4.36.2
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
62 lines
2.1 KiB
YAML
62 lines
2.1 KiB
YAML
name: Lint
|
|
on:
|
|
pull_request:
|
|
branches: [ master ]
|
|
concurrency:
|
|
group: ${{ github.workflow }}-${{ github.ref }}
|
|
cancel-in-progress: true
|
|
env:
|
|
# environment variables shared between build steps
|
|
# do not include sensitive credentials and tokens here, instead pass them
|
|
# directly to tools that need them to limit the blast radius in case one of them
|
|
# becomes compromised and leaks credentials to external sites.
|
|
# required by Makefile
|
|
UNIX_SHELL_ON_WINDOWS: true
|
|
# set (to any value other than false) to trigger random unicode filenames testing (logs may be difficult to read)
|
|
ENABLE_UNICODE_FILENAMES: ${{ secrets.ENABLE_UNICODE_FILENAMES }}
|
|
# set (to any value other than false) to trigger very long filenames testing
|
|
ENABLE_LONG_FILENAMES: ${{ secrets.ENABLE_LONG_FILENAMES }}
|
|
permissions:
|
|
contents: read
|
|
jobs:
|
|
build:
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
os: [ubuntu-latest, macos-latest]
|
|
name: Lint
|
|
runs-on: ${{ matrix.os }}
|
|
permissions:
|
|
security-events: write
|
|
steps:
|
|
- name: Check out repository
|
|
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
|
|
with:
|
|
fetch-depth: 0
|
|
- name: Set up Go
|
|
uses: actions/setup-go@924ae3a1cded613372ab5595356fb5720e22ba16 # v6.5.0
|
|
with:
|
|
go-version-file: 'go.mod'
|
|
- id: govulncheck
|
|
name: govulncheck
|
|
# generate report and then fail if issues are found
|
|
run: |
|
|
go install golang.org/x/vuln/cmd/govulncheck@v1.3.0
|
|
govulncheck -format sarif ./... > govulncheck.sarif
|
|
govulncheck ./...
|
|
- id: govulncheck-results
|
|
if: ${{ always() }}
|
|
name: "Upload govulncheck results to dashboard"
|
|
uses: github/codeql-action/upload-sarif@8aad20d150bbac5944a9f9d289da16a4b0d87c1e # v3.29.5
|
|
with:
|
|
sarif_file: govulncheck.sarif
|
|
- name: Lint
|
|
run: make lint
|
|
- name: Lint Windows
|
|
if: ${{ contains(matrix.os, 'ubuntu') }}
|
|
run: make lint-windows
|
|
- name: Check Locks
|
|
run: make check-locks
|
|
- name: Prettier
|
|
run: make check-prettier
|