-
Notifications
You must be signed in to change notification settings - Fork 0
soldeer migration #6
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,8 @@ | ||
| name: Publish to Soldeer | ||
| on: | ||
| push: | ||
| tags: ["v*"] | ||
| jobs: | ||
| publish: | ||
| uses: rainlanguage/rainix/.github/workflows/publish-soldeer.yaml@main | ||
| secrets: inherit | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,43 +1,6 @@ | ||
| name: Rainix CI | ||
| name: rainix-sol | ||
| on: [push] | ||
|
|
||
| jobs: | ||
| rainix: | ||
| strategy: | ||
| matrix: | ||
| os: [ubuntu-latest] | ||
| task: [rainix-sol-test, rainix-sol-static, rainix-sol-legal] | ||
| fail-fast: false | ||
| runs-on: ${{ matrix.os }} | ||
| env: | ||
| DEPLOYMENT_KEY: ${{ github.ref == 'refs/heads/main' && secrets.PRIVATE_KEY || secrets.PRIVATE_KEY_DEV }} | ||
| steps: | ||
| - uses: actions/checkout@v4 | ||
| with: | ||
| submodules: recursive | ||
| fetch-depth: 0 | ||
|
|
||
| - uses: nixbuild/nix-quick-install-action@v30 | ||
| with: | ||
| nix_conf: | | ||
| keep-env-derivations = true | ||
| keep-outputs = true | ||
| - name: Restore and save Nix store | ||
| uses: nix-community/cache-nix-action@v6 | ||
| with: | ||
| # restore and save a cache using this key | ||
| primary-key: nix-${{ runner.os }}-${{ hashFiles('**/*.nix', '**/flake.lock') }} | ||
| # if there's no cache hit, restore a cache by this prefix | ||
| restore-prefixes-first-match: nix-${{ runner.os }}- | ||
| # collect garbage until the Nix store size (in bytes) is at most this number | ||
| # before trying to save a new cache | ||
| # 1G = 1073741824 | ||
| gc-max-store-size-linux: 1G | ||
|
|
||
| - run: nix develop -c rainix-sol-prelude | ||
| - name: Run ${{ matrix.task }} | ||
| env: | ||
| ETH_RPC_URL: ${{ secrets.CI_DEPLOY_RPC_URL }} | ||
| ETHERSCAN_API_KEY: ${{ secrets.EXPLORER_VERIFICATION_KEY }} | ||
| RPC_URL_FLARE_FORK: ${{ secrets.RPC_URL_FLARE_FORK }} | ||
| run: nix develop -c ${{ matrix.task }} | ||
| rainix-sol: | ||
| uses: rainlanguage/rainix/.github/workflows/rainix-sol.yaml@main | ||
| secrets: inherit | ||
|
Comment on lines
+5
to
+6
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🧩 Analysis chain🏁 Script executed: # First, check if the file exists and read the relevant lines
if [ -f ".github/workflows/rainix.yaml" ]; then
echo "=== File content (lines 1-20) ==="
head -20 .github/workflows/rainix.yaml | cat -n
echo ""
echo "=== Lines 5-6 specifically ==="
sed -n '5,6p' .github/workflows/rainix.yaml | cat -n
else
echo "File not found"
fiRepository: rainlanguage/rain.verify.interface Length of output: 428 🏁 Script executed: # Search for all reusable workflow references in the repo to understand the pattern
echo "=== All uses: references in workflows ==="
fd -e yaml -e yml . .github/workflows 2>/dev/null | xargs grep -n "uses:" | head -20Repository: rainlanguage/rain.verify.interface Length of output: 336 🌐 Web query:
💡 Result: In GitHub Actions reusable workflows, the recommended/secure approach is: 1) Pin the reusable workflow reference (the Citations:
Pin the reusable workflow to a specific commit SHA instead of Using a mutable reference ( Suggested change- uses: rainlanguage/rainix/.github/workflows/rainix-sol.yaml@main
+ uses: rainlanguage/rainix/.github/workflows/rainix-sol.yaml@<commit-sha>🤖 Prompt for AI Agents |
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,2 +1,3 @@ | ||
| cache | ||
| out | ||
| out | ||
| dependencies |
This file was deleted.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,28 @@ | ||
| .DS_Store | ||
| .cargo | ||
| .coderabbit.yaml | ||
| .devcontainer.json | ||
| .envrc | ||
| .gas-snapshot | ||
| .git | ||
| .github | ||
| .gitignore | ||
| .gitmodules | ||
| .pre-commit-config.yaml | ||
| .prettierignore | ||
| .soldeerignore | ||
| .vscode | ||
| CLAUDE.md | ||
| /audit | ||
| /cache | ||
| /dependencies | ||
| /flake.lock | ||
| /flake.nix | ||
| /foundry.lock | ||
| /foundry.toml | ||
| /lib | ||
| /out | ||
| /remappings.txt | ||
| /slither.config.json | ||
| /soldeer.lock | ||
| /REUSE.toml |
This file was deleted.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| forge-std-1.16.1/=dependencies/forge-std-1.16.1/ |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,6 @@ | ||
| [[dependencies]] | ||
| name = "forge-std" | ||
| version = "1.16.1" | ||
| url = "https://soldeer-revisions.s3.amazonaws.com/forge-std/1_16_1_08-05-2026_08:51:16_forge-std-1.16.zip" | ||
| checksum = "839b61832925c7152c7b6dffbfa4998d9e606211179bd8f604733124e8a7cb57" | ||
| integrity = "60e55d10150354ca4a1e2985c5456c834b92b82ef85ab0e1d92a7786cddbd219" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🧩 Analysis chain
🏁 Script executed:
Repository: rainlanguage/rain.verify.interface
Length of output: 294
Pin reusable workflow to an immutable commit SHA.
Line 7 currently references
@main. Withsecrets: inheriton line 8, upstream changes can alter privileged execution unexpectedly. Pin to a specific commit SHA instead.Suggested change
🤖 Prompt for AI Agents