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

chore: enable codeql and workflows cleanup #1007

Merged
merged 1 commit into from
Jan 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
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]
0xmad marked this conversation as resolved.
Show resolved Hide resolved
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]
ctrlc03 marked this conversation as resolved.
Show resolved Hide resolved
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
Loading