Advisory for malicious and removed crate polymarket-client-sdks #4406
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Validate | |
| on: | |
| pull_request: {} | |
| push: | |
| branches: main | |
| permissions: {} | |
| jobs: | |
| lint: | |
| name: Lint advisories | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| with: | |
| persist-credentials: false | |
| - name: Cache cargo bin | |
| id: admin-cache | |
| uses: actions/cache@cdf6c1fa76f9f475f3d7449005a359c84ca0f306 # v5.0.3 | |
| with: | |
| path: ~/.cargo/bin | |
| key: rustsec-admin-fd0658040d06dff9569dd7b2df60439db93403ec | |
| - name: Install rustsec-admin | |
| if: steps.admin-cache.outputs.cache-hit != 'true' | |
| run: cargo install --git https://github.com/rustsec/rustsec rustsec-admin --rev fd0658040d06dff9569dd7b2df60439db93403ec | |
| - name: Lint advisories | |
| run: rustsec-admin lint |