Skip to content

Commit

Permalink
Merge pull request #3 from theteamatx/codeql
Browse files Browse the repository at this point in the history
Updated SECURITY.md, added codeql.yml with buildscript.sh
  • Loading branch information
mmaraya authored May 12, 2023
2 parents a53e9f7 + a741bbf commit 78198a0
Show file tree
Hide file tree
Showing 3 changed files with 64 additions and 5 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/buildscript.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/bash
git submodule update --init --recursive
bazel build --config=libc++ -c opt genit:all

57 changes: 57 additions & 0 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
name: "CodeQL"

on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
schedule:
- cron: '00 16 * * 3'

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

strategy:
fail-fast: false
matrix:
language: [ 'cpp']
# CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python', 'ruby' ]
# Learn more about CodeQL language support at https://aka.ms/codeql-docs/language-support

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

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v2
with:
languages: ${{ matrix.language }}
# If you wish to specify custom queries, you can do so here or in a config file.
# By default, queries listed here will override any specified in a config file.
# Prefix the list here with "+" to use these queries and those in the config file.

# Details on CodeQL's query packs refer to : https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-code-scanning#using-queries-in-ql-packs
# queries: security-extended,security-and-quality


# ℹ️ Command-line programs to run using the OS shell.
# 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun

# If the Autobuild fails above, remove it and uncomment the following three lines.
# modify them (or add more) to build your code if your project, please refer to the EXAMPLE below for guidance.

- run: |
echo "Run, Build Application using script"
.github/workflows/buildscript.sh
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2
with:
category: "/language:${{matrix.language}}"
8 changes: 3 additions & 5 deletions SECURITY.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
# Security Policy
Please use https://g.co/vulnz to report security vulnerabilities.

## Reporting a Vulnerability
We use https://g.co/vulnz for our intake and triage. For valid issues we will do coordination and disclosure here on GitHub (including using a GitHub Security Advisory when necessary).

To report a security issue, please email [mikael.s.persson@gmail.com](mailto:mikael.s.persson@gmail.com)
with a description of the issue, the steps you took to create the issue, affected versions, and,
if known, mitigcations for the issue.
The Google Security Team will process your report within a day, and respond within a week (although it will depend on the severity of your report).

0 comments on commit 78198a0

Please sign in to comment.