Skip to content

Commit

Permalink
feat(ci): olympix scan integration (circlefin#49)
Browse files Browse the repository at this point in the history
Summary:
Introduces a new Github Action workflow to integrate the Olympix Static
Analysis tool for Solidity code scanning.

- Adds .github/workflows/ci-olympix.yml that uses a reusable workflow
from
[security-seceng-templates](https://github.com/circlefin/security-seceng-templates/blob/master/.github/workflows/olympix_scan.yml)
- Workflow is triggered on every pull request as well as scheduled on a
weekly basis.(Monday)
  • Loading branch information
pthakur-circle authored and grantmike committed Jan 23, 2025
1 parent 7591b34 commit 3d6c2ce
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 10 deletions.
13 changes: 13 additions & 0 deletions .github/workflows/ci-olympix.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
name: "Olympix Scan"
on:
pull_request:
branches: [ "master" ]
workflow_dispatch:
schedule:
- cron: '31 14 * * 1' # Every Monday 2:31PM UTC

jobs:
run_olympix:
if: ${{ github.repository_owner == 'circlefin' }}
uses: circlefin/security-seceng-templates/.github/workflows/olympix_scan.yml@v1

22 changes: 12 additions & 10 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
{
"editor.formatOnSave": true,
"solidity.compilerOptimization": 200,
"solidity.enabledAsYouTypeCompilationErrorCheck": true,
"solidity.compileUsingRemoteVersion": "v0.7.6+commit.7338295f",
"solidity.formatter": "prettier",
"solidity.linter": "solhint",
"solidity.validationDelay": 1500,
"[solidity]": {
"editor.tabSize": 4,
}
"editor.formatOnSave": true,
"solidity.compilerOptimization": 200,
"solidity.enabledAsYouTypeCompilationErrorCheck": true,
"solidity.compileUsingRemoteVersion": "v0.7.6+commit.7338295f",
"solidity.formatter": "prettier",
"solidity.linter": "solhint",
"solidity.validationDelay": 1500,
"[solidity]": {
"editor.tabSize": 4,
},
"security.olympix.project.includePath": "/src",
"security.olympix.project.testsPath": "/test"
}
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,12 @@ Run `make analyze-{message-transmitter | message-transmitter-v2 | token-messenge

We use Github actions to run linter and all the tests. The workflow configuration can be found in [.github/workflows/ci.yml](.github/workflows/ci.yml)

### Manual Triggering of the Olympix CI Workflow for Security Alerts
You can manually trigger the Olympix.ai Code Scanning workflow using the `workflow_dispatch` feature of GitHub Actions.
1. Click on the `Actions` tab.
2. In the left sidebar, select `Olympix Scan`.
3. Select the branch & click on the `Run workflow` button.

### Alternative Installations

#### Docker + Foundry
Expand Down

0 comments on commit 3d6c2ce

Please sign in to comment.