Member-only story

GitHub Code Scanning — How to set with YAML file

Maciej
3 min readOct 14, 2020

--

Introduction

GitHub Code Scanning was released to the public on September.

While reading the official document, I summarized the contents that I actually used in this article.

What is GitHub Code Scanning?

GitHub Code Scanning is a service that automatically detects code vulnerabilities based on CodeQL acquired by GitHub.

How to use GitHub Code Scanning ???

The official GitHub docs only describe tutorials that pop in the Web UI as usual, but since it’s just one of GitHub Actions, .github/workflowsyou can use it by placing a YAML file in your directory. An example of the setting that uses the default CodeQL of Code Scanning is as follows.

name: CodeQL

on: [push, pull_request]

jobs:
analyze:
runs-on: ubuntu-latest
strategy:
fail-fast: false
steps:
- uses: actions/checkout@v2…

--

--

Maciej
Maciej

Written by Maciej

DevOps Consultant. I’m strongly focused on automation, security, and reliability.

No responses yet