forked from gchpaco/global_session
-
Notifications
You must be signed in to change notification settings - Fork 2
48 lines (39 loc) · 1.17 KB
/
codeql.yaml
File metadata and controls
48 lines (39 loc) · 1.17 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
name: "CodeQL"
on:
push:
branches:
- "master"
pull_request:
types: [ opened, synchronize, reopened ]
jobs:
analyze:
name: Analyze
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
ruby-version: ['2.1', '2.2', '2.3']
permissions:
security-events: write
actions: read
contents: read
steps:
# Force SSH authentication for repositories with HTTPS references
- name: Git Config
run: |
git config --global --add url.ssh://git@github.com/flexera/.insteadof https://github.com/flexera/
git config --global --add url.ssh://git@github.com/rightscale/.insteadof https://github.com/rightscale/
- name: Checkout repository
uses: actions/checkout@v2
with:
fetch-depth: 0
submodules: recursive
path: go/src/github.com/${{ github.repository }}
- name: Initialize CodeQL
uses: github/codeql-action/init@v2
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby-version }}
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2