diff --git a/.github/workflows/security.yml b/.github/workflows/security.yml index 2cbab2ad..6df2cd94 100644 --- a/.github/workflows/security.yml +++ b/.github/workflows/security.yml @@ -59,6 +59,24 @@ jobs: run: cargo audit working-directory: contracts + - name: Setup Rust toolchain for contract audit + uses: dtolnay/rust-toolchain@stable + + - name: Cache cargo-audit + id: cargo-audit-cache + uses: actions/cache@v4 + with: + path: ~/.cargo/bin/cargo-audit + key: cargo-audit-${{ runner.os }}-0.22.0 + + - name: Install cargo-audit + if: steps.cargo-audit-cache.outputs.cache-hit != 'true' + run: cargo install cargo-audit --version 0.22.0 --locked + + - name: Check for known vulnerabilities in smart contracts (cargo audit) + run: cargo audit + working-directory: contracts + - name: Verify security setup run: npm run verify-security diff --git a/frontend/src/components/NotificationDropdown.tsx b/frontend/src/components/NotificationDropdown.tsx index e37d3f85..be7c7494 100644 --- a/frontend/src/components/NotificationDropdown.tsx +++ b/frontend/src/components/NotificationDropdown.tsx @@ -170,6 +170,13 @@ export const NotificationDropdown: React.FC = ({ publ return (
+ + {unreadCount} new notifications +