Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create codeql-analysis.yml #3784

Closed
wants to merge 55 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
55 commits
Select commit Hold shift + click to select a range
bc0f15f
chore(deps): bump node-uuid
dependabot[bot] Aug 16, 2022
e3d071f
fix: upgrade typescript from 4.3.2 to 4.7.4
snyk-bot Aug 16, 2022
bb9a14c
fix: upgrade @octokit/rest from 18.5.4 to 18.12.0
snyk-bot Aug 16, 2022
a9e6dde
Create codeql-analysis.yml
Jimimaku Aug 31, 2022
5af6f6b
fix: docker/Dockerfile.python-3.6 to reduce vulnerabilities
snyk-bot Sep 14, 2022
a22142b
Merge branch 'snyk:master' into master
Jimimaku Sep 30, 2022
aaee420
Merge branch 'snyk:master' into master
Jimimaku Oct 2, 2022
2269ef9
Merge pull request #29 from snyk/master
Jimimaku Oct 10, 2022
8cca851
Merge remote-tracking branch 'upstream/master'
Jimimaku Oct 11, 2022
3282f86
Merge remote-tracking branch 'upstream/master'
Jimimaku Oct 12, 2022
16450a0
Merge remote-tracking branch 'upstream/master'
Jimimaku Oct 23, 2022
a90bd66
chore(deps): bump actionpack
dependabot[bot] Oct 29, 2022
a5f548e
Transferring API Description file from Apiary.io
Jimimaku Nov 1, 2022
a0a70c3
Merge remote-tracking branch 'upstream/master'
Jimimaku Nov 1, 2022
a60d883
Merge branch 'master' of https://github.com/Jimimaku/cli
Jimimaku Nov 1, 2022
bca4e50
Merge remote-tracking branch 'upstream/master'
Jimimaku Nov 1, 2022
ce41e2d
Merge remote-tracking branch 'upstream/master'
Jimimaku Nov 4, 2022
2401219
Merge remote-tracking branch 'upstream/master'
Jimimaku Nov 4, 2022
48f28ed
Merge remote-tracking branch 'upstream/master'
Jimimaku Nov 9, 2022
ef633e9
Merge remote-tracking branch 'upstream/master'
Jimimaku Nov 13, 2022
e564ec8
chore(deps): bump loader-utils from 1.4.0 to 1.4.2
dependabot[bot] Nov 16, 2022
3e40c72
Merge remote-tracking branch 'upstream/master'
Jimimaku Nov 18, 2022
5a1c686
Merge branch 'snyk:master' into master
Jimimaku Nov 21, 2022
438b936
Merge remote-tracking branch 'upstream/master'
Jimimaku Nov 21, 2022
8513613
Merge branch 'master' of https://github.com/Jimimaku/cli
Jimimaku Nov 21, 2022
e7c61ee
Add .whitesource configuration file
mend-bolt-for-github[bot] Nov 21, 2022
cba6e58
Merge pull request #19 from Jimimaku/snyk-fix-49479547623c751d061fc22…
Jimimaku Nov 21, 2022
95c73f9
Merge pull request #50 from Jimimaku/whitesource/configure
Jimimaku Nov 21, 2022
e987cc1
fix: docker/Dockerfile.python-2 to reduce vulnerabilities
snyk-bot Nov 21, 2022
7007f08
Merge pull request #51 from Jimimaku/snyk-fix-c4c1d568df59776c8c14df5…
Jimimaku Nov 21, 2022
9d5c545
Merge pull request #5 from Jimimaku/dependabot/npm_and_yarn/test/acce…
Jimimaku Nov 21, 2022
7854868
chore(deps): bump node-uuid
dependabot[bot] Nov 21, 2022
e0f4a8a
Merge pull request #48 from Jimimaku/dependabot/npm_and_yarn/loader-u…
Jimimaku Nov 21, 2022
7653db0
Merge pull request #42 from Jimimaku/dependabot/bundler/test/acceptan…
Jimimaku Nov 21, 2022
0c1f77f
chore(deps): bump nokogiri
dependabot[bot] Nov 21, 2022
5191e95
chore(deps): bump actionpack
dependabot[bot] Nov 21, 2022
75d2a78
Merge pull request #52 from Jimimaku/dependabot/bundler/test/acceptan…
Jimimaku Nov 21, 2022
241ea3a
Merge pull request #37 from Jimimaku/dependabot/bundler/test/acceptan…
Jimimaku Nov 21, 2022
26855a2
chore(deps): bump yiisoft/yii
dependabot[bot] Nov 21, 2022
1e540fc
Merge pull request #53 from Jimimaku/dependabot/composer/test/accepta…
Jimimaku Nov 21, 2022
51d67de
Merge pull request #6 from Jimimaku/dependabot/npm_and_yarn/test/acce…
Jimimaku Nov 21, 2022
a0b4d8b
chore(deps): bump twig/twig in /test/acceptance/workspaces/composer-app
dependabot[bot] Nov 21, 2022
fab5e76
Merge pull request #7 from Jimimaku/snyk-upgrade-00f3b2b3ea3a5a45bd0f…
Jimimaku Nov 21, 2022
abec52b
chore(deps): bump node-uuid
dependabot[bot] Nov 21, 2022
60d8911
Merge pull request #4 from Jimimaku/dependabot/npm_and_yarn/test/acce…
Jimimaku Nov 21, 2022
b00fea7
chore(deps): bump qs
dependabot[bot] Nov 21, 2022
ab5aaab
Merge pull request #3 from Jimimaku/dependabot/npm_and_yarn/test/acce…
Jimimaku Nov 21, 2022
4744b65
chore(deps): bump node-uuid
dependabot[bot] Nov 21, 2022
20f1a0f
Merge pull request #8 from Jimimaku/snyk-upgrade-60a30f98fef13e804bcb…
Jimimaku Nov 21, 2022
7dd5fd1
Merge pull request #22 from Jimimaku/dependabot/npm_and_yarn/test/acc…
Jimimaku Nov 22, 2022
8433f2b
Merge pull request #27 from Jimimaku/dependabot/composer/test/accepta…
Jimimaku Nov 22, 2022
ab95e01
Merge remote-tracking branch 'upstream/master'
Jimimaku Dec 7, 2022
bce808a
Merge remote-tracking branch 'upstream/master'
Jimimaku Dec 28, 2022
5c1a948
Merge remote-tracking branch 'upstream/master'
Jimimaku Jan 6, 2023
3360d08
Merge remote-tracking branch 'upstream/master'
Jimimaku Jan 10, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
72 changes: 72 additions & 0 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
# For most projects, this workflow file will not need changing; you simply need
# to commit it to your repository.
#
# You may wish to alter this file to override the set of languages analyzed,
# or to provide custom queries or build logic.
#
# ******** NOTE ********
# We have attempted to detect the languages in your repository. Please check
# the `language` matrix defined below to confirm you have the correct set of
# supported CodeQL languages.
#
name: "CodeQL"

on:
push:
branches: [ "master" ]
pull_request:
# The branches below must be a subset of the branches above
branches: [ "master" ]
schedule:
- cron: '21 19 * * 0'

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

strategy:
fail-fast: false
matrix:
language: [ 'csharp', 'go', 'javascript', 'python', 'ruby' ]
# 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


# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
# If this step fails, then you should remove it and run the build manually (see below)
- name: Autobuild
uses: github/codeql-action/autobuild@v2

# ℹ️ 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"
# ./location_of_script_within_repo/buildscript.sh

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2
14 changes: 14 additions & 0 deletions .whitesource
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"scanSettings": {
"baseBranches": []
},
"checkRunSettings": {
"vulnerableCheckRunConclusionLevel": "failure",
"displayMode": "diff",
"useMendCheckNames": true
},
"issueSettings": {
"minSeverityLevel": "LOW",
"issueType": "DEPENDENCY"
}
}
80 changes: 80 additions & 0 deletions apiary.apib
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
FORMAT: 1A
HOST: https://polls.apiblueprint.org/

# Api

Polls is a simple API allowing consumers to view polls and vote in them.

## Questions Collection [/questions]

### List All Questions [GET]

+ Response 200 (application/json)

[
{
"question": "Favourite programming language?",
"published_at": "2015-08-05T08:40:51.620Z",
"choices": [
{
"choice": "Swift",
"votes": 2048
}, {
"choice": "Python",
"votes": 1024
}, {
"choice": "Objective-C",
"votes": 512
}, {
"choice": "Ruby",
"votes": 256
}
]
}
]

### Create a New Question [POST]

You may create your own question using this action. It takes a JSON
object containing a question and a collection of answers in the
form of choices.

+ Request (application/json)

{
"question": "Favourite programming language?",
"choices": [
"Swift",
"Python",
"Objective-C",
"Ruby"
]
}

+ Response 201 (application/json)

+ Headers

Location: /questions/2

+ Body

{
"question": "Favourite programming language?",
"published_at": "2015-08-05T08:40:51.620Z",
"choices": [
{
"choice": "Swift",
"votes": 0
}, {
"choice": "Python",
"votes": 0
}, {
"choice": "Objective-C",
"votes": 0
}, {
"choice": "Ruby",
"votes": 0
}
]
}
2 changes: 1 addition & 1 deletion docker/Dockerfile.python-2
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM python:2.7-slim
FROM python:3.9-slim

MAINTAINER Snyk Ltd

Expand Down
2 changes: 1 addition & 1 deletion docker/Dockerfile.python-3.6
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM python:3.6-slim
FROM python:3.9-slim

MAINTAINER Snyk Ltd

Expand Down
24 changes: 12 additions & 12 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading