oh-my-posh/.github/workflows/codeql.yml

37 lines
996 B
YAML
Raw Normal View History

2021-05-14 04:54:31 -07:00
on:
pull_request:
paths-ignore:
- 'README.md'
- 'CONTRIBUTING.md'
- 'COPYING'
2022-05-12 22:54:59 -07:00
- 'website/**'
2021-05-14 04:54:31 -07:00
- '.github/*.md'
- '.github/FUNDING.yml'
push:
branches:
- main
name: Code QL
jobs:
code-ql:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ${{ github.workspace }}/src
steps:
- name: Install Go
uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32
2021-05-14 04:54:31 -07:00
with:
2023-08-29 11:25:51 -07:00
go-version: 1.21
2023-07-10 04:40:31 -07:00
cache-dependency-path: src/go.sum
2021-05-14 04:54:31 -07:00
- name: Checkout code
uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938
2021-05-14 04:54:31 -07:00
- name: Initialize CodeQL
uses: github/codeql-action/init@461ef6c76dfe95d5c364de2f431ddbd31a417628
2021-05-14 04:54:31 -07:00
with:
languages: go
- name: Autobuild
uses: github/codeql-action/autobuild@461ef6c76dfe95d5c364de2f431ddbd31a417628
2021-05-14 04:54:31 -07:00
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@461ef6c76dfe95d5c364de2f431ddbd31a417628