Repository navigation
chore: pre-revamp audit — cleanup, reliability, security, and list-data fixes #15
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
Merged
Merged
Changes from all commits
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
a45f9b9
refactor(generators): remove dead code, dedupe, and harden reliability
Majorfi 8bc2325
fix(security): match auth host exactly to prevent bearer token exfilt…
Majorfi c2545d9
ci: pin actions to SHA, gate PR steps, and wire schema validation
Majorfi 2187333
docs: sync generators, chains, and README with the code
Majorfi 64950c2
fix(lists): correct timestamps and names, remove orphan lists
Majorfi 5470cab
Update tokens.go
Majorfi bc9d0ad
ci: set least-privilege GITHUB_TOKEN permissions on workflows
Majorfi 25bab27
Merge remote-tracking branch 'origin/main' into chore/pre-revamp-audi…
Majorfi 97b5bc4
Merge remote-tracking branch 'origin/chore/pre-revamp-audit-fixes' in…
Majorfi f1b57fe
fix(schema): allow empty list-level logoURI and restore it for sushiswap
Majorfi 0628779
fix: address Copilot review — propagate external-list removals and ke…
Majorfi 0bb3898
fix: address Copilot review — non-zero exit on unknown generator, cor…
Majorfi 939c13b
fix(popular): key OccurrenceFloat lookup by chainId and normalized ad…
Majorfi a737c91
fix(verify): guard non-object token entries and use error.message for…
Majorfi 536bdfe
fix: address Copilot review — nil RPC guards, multicall fd leak, stri…
Majorfi 3378b74
fix: address Copilot review — handle request/write errors, update sch…
Majorfi File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,63 +1,35 @@ | ||
| name: ♻️ Testing stuff | ||
| name: 🧪 CI | ||
| on: | ||
| pull_request: | ||
| branches: | ||
| - main | ||
| push: | ||
| branches: | ||
| - main | ||
| workflow_dispatch: | ||
|
|
||
| permissions: | ||
| contents: read | ||
|
|
||
| jobs: | ||
| build: | ||
| runs-on: ubuntu-latest | ||
| if: "!contains(github.event.head_commit.message, '[bot] - Update lists')" | ||
| steps: | ||
| - name: Checkout | ||
| uses: actions/checkout@v3 | ||
| with: | ||
| persist-credentials: false | ||
| fetch-depth: 0 | ||
| - name: GoSetup | ||
| uses: actions/setup-go@v3 | ||
| with: | ||
| go-version-file: './go.mod' | ||
| go-version: '1.19.3' | ||
| - name: run | ||
| env: | ||
| RPC_URI_FOR_1: ${{ secrets.RPC_URI_FOR_1 }} | ||
| RPC_URI_FOR_10: ${{ secrets.RPC_URI_FOR_10 }} | ||
| RPC_URI_FOR_56: ${{ secrets.RPC_URI_FOR_56 }} | ||
| RPC_URI_FOR_100: ${{ secrets.RPC_URI_FOR_100 }} | ||
| RPC_URI_FOR_137: ${{ secrets.RPC_URI_FOR_137 }} | ||
| RPC_URI_FOR_250: ${{ secrets.RPC_URI_FOR_250 }} | ||
| RPC_URI_FOR_252: ${{ secrets.RPC_URI_FOR_252 }} | ||
| RPC_URI_FOR_288: ${{ secrets.RPC_URI_FOR_288 }} | ||
| RPC_URI_FOR_8453: ${{ secrets.RPC_URI_FOR_8453 }} | ||
| RPC_URI_FOR_42161: ${{ secrets.RPC_URI_FOR_42161 }} | ||
| RPC_URI_FOR_42170: ${{ secrets.RPC_URI_FOR_42170 }} | ||
| RPC_URI_FOR_56288: ${{ secrets.RPC_URI_FOR_56288 }} | ||
| RPC_URI_FOR_81457: ${{ secrets.RPC_URI_FOR_81457 }} | ||
| RPC_URI_FOR_111188: ${{ secrets.RPC_URI_FOR_111188 }} | ||
| BEARER_FOR_1INCH: ${{ secrets.BEARER_FOR_1INCH }} | ||
| run: go run ./generators test | ||
| - name: Commit files | ||
| run: | | ||
| git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com" | ||
| git config --local user.name "github-actions[bot]" | ||
| git commit -a -m "[bot] - Update lists" | ||
| - name: Temporarily disable "include administrators" branch protection | ||
| uses: benjefferies/branch-protection-bot@master | ||
| if: always() | ||
| with: | ||
| access_token: ${{ secrets.ACCESS_TOKEN }} | ||
| branch: ${{ github.event.repository.default_branch }} | ||
| enforce_admins: false | ||
| - name: Push changes | ||
| uses: ad-m/github-push-action@master | ||
| with: | ||
| github_token: ${{ secrets.ACCESS_TOKEN }} | ||
| branch: ${{ github.ref }} | ||
| - name: Enable "include administrators" branch protection | ||
| uses: benjefferies/branch-protection-bot@master | ||
| if: always() # Force to always run this step to ensure "include administrators" is always turned back on | ||
| with: | ||
| access_token: ${{ secrets.ACCESS_TOKEN }} | ||
| owner: smoldapp | ||
| repo: tokenLists | ||
| branch: ${{ github.event.repository.default_branch }} | ||
| enforce_admins: true | ||
| test: | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - name: Checkout | ||
| uses: actions/checkout@v4 | ||
| - name: GoSetup | ||
| uses: actions/setup-go@v5 | ||
| with: | ||
| go-version-file: "./go.mod" | ||
| - name: Build | ||
| run: go build ./... | ||
| - name: Vet | ||
| run: go vet ./... | ||
| - name: NodeSetup | ||
| uses: actions/setup-node@v4 | ||
| with: | ||
| node-version: 20 | ||
| - name: Install | ||
| run: npm install | ||
| - name: Verify | ||
| run: npm run verify | ||
|
github-advanced-security[bot] marked this conversation as resolved.
Fixed
|
||
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
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
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.