diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 0000000..a57a656 --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,66 @@ +version: 2 +updates: + - package-ecosystem: npm + directory: /frontend + schedule: + interval: weekly + day: monday + time: "09:00" + timezone: Etc/UTC + open-pull-requests-limit: 5 + groups: + frontend-dependencies: + patterns: + - "*" + + - package-ecosystem: npm + directory: /alerts + schedule: + interval: weekly + day: monday + time: "09:15" + timezone: Etc/UTC + open-pull-requests-limit: 5 + groups: + alerts-dependencies: + patterns: + - "*" + + - package-ecosystem: npm + directory: /scripts + schedule: + interval: weekly + day: monday + time: "09:30" + timezone: Etc/UTC + open-pull-requests-limit: 5 + groups: + scripts-dependencies: + patterns: + - "*" + + - package-ecosystem: cargo + directory: / + schedule: + interval: weekly + day: monday + time: "10:00" + timezone: Etc/UTC + open-pull-requests-limit: 5 + groups: + rust-dependencies: + patterns: + - "*" + + - package-ecosystem: cargo + directory: /contracts/strategies/blend_leverage + schedule: + interval: weekly + day: monday + time: "10:15" + timezone: Etc/UTC + open-pull-requests-limit: 5 + groups: + blend-leverage-dependencies: + patterns: + - "*" diff --git a/.github/workflows/security-audit.yml b/.github/workflows/security-audit.yml new file mode 100644 index 0000000..c54d0ab --- /dev/null +++ b/.github/workflows/security-audit.yml @@ -0,0 +1,38 @@ +name: Security Audit + +on: + pull_request: + paths: + - "Cargo.toml" + - "Cargo.lock" + - "contracts/**/Cargo.toml" + - "contracts/**/Cargo.lock" + - ".github/workflows/security-audit.yml" + push: + branches: [main] + paths: + - "Cargo.toml" + - "Cargo.lock" + - "contracts/**/Cargo.toml" + - "contracts/**/Cargo.lock" + - ".github/workflows/security-audit.yml" + workflow_dispatch: + +permissions: + contents: read + +jobs: + cargo-audit: + name: cargo audit + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + + - name: Show Rust toolchain + run: cargo --version + + - name: Install cargo-audit + run: cargo install cargo-audit --locked + + - name: Run cargo audit + run: cargo audit --deny warnings