Skip to content

Commit 16a73bf

Browse files
CodeQL追加 (#886)
* Add CodeQL * formatが間違ってたので直してあげたよ! (#887) Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> * formatが間違ってたので直してあげたよ! (#888) Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> * formatが間違ってたので直してあげたよ! (#889) Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> * formatが間違ってたので直してあげたよ! (#890) Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> --------- Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
1 parent b4f5c75 commit 16a73bf

File tree

1 file changed

+71
-0
lines changed

1 file changed

+71
-0
lines changed

.github/workflows/codeql.yml

Lines changed: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
# For most projects, this workflow file will not need changing; you simply need
2+
# to commit it to your repository.
3+
#
4+
# You may wish to alter this file to override the set of languages analyzed,
5+
# or to provide custom queries or build logic.
6+
#
7+
# ******** NOTE ********
8+
# We have attempted to detect the languages in your repository. Please check
9+
# the `language` matrix defined below to confirm you have the correct set of
10+
# supported CodeQL languages.
11+
#
12+
name: "CodeQL"
13+
on:
14+
push:
15+
branches: ["main"]
16+
pull_request:
17+
branches: ["main"]
18+
schedule:
19+
- cron: '15 7 * * 2'
20+
jobs:
21+
analyze:
22+
name: Analyze
23+
# Runner size impacts CodeQL analysis time. To learn more, please see:
24+
# - https://gh.io/recommended-hardware-resources-for-running-codeql
25+
# - https://gh.io/supported-runners-and-hardware-resources
26+
# - https://gh.io/using-larger-runners
27+
# Consider using larger runners for possible analysis time improvements.
28+
runs-on: ${{ (matrix.language == 'swift' && 'macos-latest') || 'ubuntu-latest' }}
29+
timeout-minutes: ${{ (matrix.language == 'swift' && 120) || 360 }}
30+
permissions:
31+
actions: read
32+
contents: read
33+
security-events: write
34+
strategy:
35+
fail-fast: false
36+
matrix:
37+
language: ['javascript-typescript']
38+
# CodeQL supports [ 'c-cpp', 'csharp', 'go', 'java-kotlin', 'javascript-typescript', 'python', 'ruby', 'swift' ]
39+
# Use only 'java-kotlin' to analyze code written in Java, Kotlin or both
40+
# Use only 'javascript-typescript' to analyze code written in JavaScript, TypeScript or both
41+
# Learn more about CodeQL language support at https://aka.ms/codeql-docs/language-support
42+
steps:
43+
- name: Checkout repository
44+
uses: actions/checkout@v3
45+
# Initializes the CodeQL tools for scanning.
46+
- name: Initialize CodeQL
47+
uses: github/codeql-action/init@v2
48+
with:
49+
languages: ${{ matrix.language }}
50+
# If you wish to specify custom queries, you can do so here or in a config file.
51+
# By default, queries listed here will override any specified in a config file.
52+
# Prefix the list here with "+" to use these queries and those in the config file.
53+
# Autobuild attempts to build any compiled languages (C/C++, C#, Go, Java, or Swift).
54+
# If this step fails, then you should remove it and run the build manually (see below)
55+
- name: Autobuild
56+
# For more 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
57+
# queries: security-extended,security-and-quality
58+
59+
uses: github/codeql-action/autobuild@v2
60+
# - run: |
61+
# echo "Run, Build Application using script"
62+
# ./location_of_script_within_repo/buildscript.sh
63+
- name: Perform CodeQL Analysis
64+
# ℹ️ Command-line programs to run using the OS shell.
65+
# 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun
66+
67+
# If the Autobuild fails above, remove it and uncomment the following three lines.
68+
# modify them (or add more) to build your code if your project, please refer to the EXAMPLE below for guidance.
69+
uses: github/codeql-action/analyze@v2
70+
with:
71+
category: "/language:${{matrix.language}}"

0 commit comments

Comments
 (0)