Skip to content

Commit

Permalink
Merge pull request #1007 from privacy-scaling-explorations/chore/codeql
Browse files Browse the repository at this point in the history
chore: enable codeql and workflows cleanup
  • Loading branch information
0xmad authored Jan 11, 2024
2 parents d0ee79a + 37a735c commit dcca295
Show file tree
Hide file tree
Showing 8 changed files with 55 additions and 11 deletions.
7 changes: 2 additions & 5 deletions .github/CODEOWNERS
Original file line number Diff line number Diff line change
@@ -1,19 +1,16 @@
# Lines starting with '#' are comments.

# Each line is a file pattern followed by one or more owners.

# More details are here: https://help.github.com/articles/about-codeowners/

# The '\*' pattern is global owners.
# The '*' pattern is global owners.

# Order is important. The last matching pattern has the most precedence.

# The folders are ordered as follows:

# In each subsection folders are ordered first by depth, then alphabetically.

# This should make it easy to add new rules without breaking existing ones.

# Global:

- @ctrlc03 @kittybest @0xmad @samajammin @crisgarner
* @ctrlc03 @kittybest @0xmad @samajammin @crisgarner
46 changes: 46 additions & 0 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
name: "CodeQL"

on:
push:
branches: [dev]
pull_request:
branches: [dev]
schedule:
- cron: "0 0 * * *"

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

strategy:
fail-fast: false
matrix:
language: ["javascript", "typeScript"]
# Learn more about CodeQL language support at https://git.io/codeql-language-support

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

# 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.
# queries: ./path/to/local/query, your-org/your-repo/queries@main

# 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

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2
2 changes: 1 addition & 1 deletion .github/workflows/contracts-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Contracts

on:
push:
branches: [master, dev]
branches: [dev]
pull_request:

concurrency:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/core-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Core

on:
push:
branches: [master, dev]
branches: [dev]
pull_request:

concurrency:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/crypto-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Crypto

on:
push:
branches: [master, dev]
branches: [dev]
pull_request:

concurrency:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/domainobjs-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Domainobjs

on:
push:
branches: [master, dev]
branches: [dev]
pull_request:

concurrency:
Expand Down
1 change: 1 addition & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ cache/
package-lock.json
**/package-lock.json
CHANGELOG.md
CODEOWNERS
.eslintignore
circuits/ts/verifier_groth16.sol
website/.docusaurus/
Expand Down
4 changes: 2 additions & 2 deletions website/versioned_docs/version-v1.x/versioning.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,10 @@ Version number '1.2.3' is used here as an example. You should replace the versio
git clone https://github.com/privacy-scaling-explorations/maci
```

3. Switch to the `master` branch:
3. Switch to the `dev` branch:

```
git checkout master
git checkout dev
```

4. Install required dependencies:
Expand Down

0 comments on commit dcca295

Please sign in to comment.