Skip to content

Commit

Permalink
chore: add codeql to CI
Browse files Browse the repository at this point in the history
  • Loading branch information
JanDeDobbeleer committed May 14, 2021
1 parent 5d5d7f9 commit 6e23cdd
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 6 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/codeql.yml
@@ -0,0 +1,35 @@
on:
pull_request:
paths-ignore:
- 'README.md'
- 'CONTRIBUTING.md'
- 'COPYING'
- 'docs/**'
- '.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@v2
with:
go-version: 1.16
- name: Checkout code
uses: actions/checkout@v2
- name: Initialize CodeQL
uses: github/codeql-action/init@v1
with:
languages: go
- name: Autobuild
uses: github/codeql-action/autobuild@v1
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v1
6 changes: 0 additions & 6 deletions README.md
Expand Up @@ -4,8 +4,6 @@
[![Go Report Card][report-card]][report-card-link]
[![PS Gallery][psgallery-badge]][powershell-gallery]
[![Documentation][docs-badge]][docs]
[![Total alerts][lgtm-alerts]][lgtm-alerts-link]
[![Language grade: Go][lgtm-code]][lgtm-code-link]

What started as the offspring of [oh-my-posh2][oh-my-posh2] for PowerShell resulted in a cross platform,
highly customizable and extensible prompt theme engine. After 4 years of working on oh-my-posh,
Expand Down Expand Up @@ -59,10 +57,6 @@ using Go (and the amazing [README][powerline-go])
[powershell-gallery]: https://www.powershellgallery.com/packages/oh-my-posh/
[report-card]: https://goreportcard.com/badge/github.com/jandedobbeleer/oh-my-posh
[report-card-link]: https://goreportcard.com/report/github.com/jandedobbeleer/oh-my-posh
[lgtm-alerts]: https://img.shields.io/lgtm/alerts/g/JanDeDobbeleer/oh-my-posh.svg?logo=lgtm&logoWidth=18
[lgtm-alerts-link]: https://lgtm.com/projects/g/JanDeDobbeleer/oh-my-posh/alerts/
[lgtm-code]: https://img.shields.io/lgtm/grade/go/g/JanDeDobbeleer/oh-my-posh.svg?logo=lgtm&logoWidth=18
[lgtm-code-link]: https://lgtm.com/projects/g/JanDeDobbeleer/oh-my-posh/context:go
[oh-my-posh2]: https://github.com/JanDeDobbeleer/oh-my-posh2
[patreon-badge]: https://img.shields.io/badge/Support-Become%20a%20Patreon!-red.svg
[patreon]: https://www.patreon.com/jandedobbeleer
Expand Down

0 comments on commit 6e23cdd

Please sign in to comment.