File: codeql-analysis.yml

package info (click to toggle)
golang-github-pion-sctp 1.8.6-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bookworm-backports, forky, sid, trixie
  • size: 888 kB
  • sloc: makefile: 13
file content (40 lines) | stat: -rw-r--r-- 865 bytes parent folder | download | duplicates (5)
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
name: "CodeQL"

on:
  workflow_dispatch:
  schedule:
    - cron: '23 5 * * 0'
  pull_request:
    branches:
      - master
    paths:
      - '**.go'

jobs:
  analyze:
    name: Analyze
    runs-on: ubuntu-latest
    permissions:
      actions: read
      contents: read
      security-events: write

    steps:
    - name: Checkout repo
      uses: actions/checkout@v3

    # The code in examples/ might intentionally do things like log credentials
    # in order to show how the library is used, aid in debugging etc. We
    # should ignore those for CodeQL scanning, and only focus on the package
    # itself.
    - name: Remove example code
      run: |
        rm -rf examples/

    - name: Initialize CodeQL
      uses: github/codeql-action/init@v2
      with:
        languages: 'go'

    - name: CodeQL Analysis
      uses: github/codeql-action/analyze@v2