Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/actions/setup-go/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ runs:
echo "version=$version" >> "$GITHUB_OUTPUT"

- name: Set up Go
uses: actions/setup-go@v5
uses: actions/setup-go@v6
with:
go-version: ${{ steps.go-version.outputs.version }}
cache: false
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/api-diff.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
fetch-depth: 0

- name: Set up Go
uses: actions/setup-go@v5
uses: actions/setup-go@v6
with:
go-version-file: "go.mod"
cache: false
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/build-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,11 @@ jobs:

steps:
- name: Checkout
uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2

- name: Set up Go
if: ${{ matrix.type.should-run == 'true' }}
uses: actions/setup-go@v5
uses: actions/setup-go@v6
with:
cache-dependency-path: ${{ matrix.type.path }}/go.sum
go-version-file: ${{ matrix.type.path }}/go.mod
Expand Down Expand Up @@ -79,7 +79,7 @@ jobs:

- name: Upload Go test results
if: ${{ matrix.type.should-run == 'true' }}
uses: actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808 # v4.3.3
uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6.0.0
with:
name: go-test-results
path: |
Expand All @@ -103,10 +103,10 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2

- name: Set up Go
uses: actions/setup-go@v5
uses: actions/setup-go@v6
with:
cache-dependency-path: go.sum
go-version-file: go.mod
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/golangci-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@ jobs:
run: echo "TAR_OPTIONS=--skip-old-files" >> $GITHUB_ENV

- name: Checkout repository
uses: actions/checkout@v4
uses: actions/checkout@v6

- name: Set up Go
uses: actions/setup-go@v5
uses: actions/setup-go@v6
with:
cache-dependency-path: go.sum
go-version-file: go.mod
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/solidity-foundry-artifacts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ jobs:
changeset_files: ${{ steps.changes-dorny.outputs.changeset_files }}
steps:
- name: Checkout the repo
uses: actions/checkout@v4
uses: actions/checkout@v6
with:
persist-credentials: false
ref: ${{ env.head_ref }}
Expand Down Expand Up @@ -120,7 +120,7 @@ jobs:
generate_code_coverage: ${{ steps.skip-code-coverage.outputs.generate_code_coverage }}
steps:
- name: Checkout the repo
uses: actions/checkout@v4
uses: actions/checkout@v6
with:
persist-credentials: false

Expand Down
44 changes: 22 additions & 22 deletions .github/workflows/solidity-foundry.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ jobs:
echo "matrix=$matrix" >> $GITHUB_OUTPUT

- name: Checkout the repo
uses: actions/checkout@v4
uses: actions/checkout@v6
with:
persist-credentials: false

Expand All @@ -64,7 +64,7 @@ jobs:
all_changes: ${{ steps.changes.outputs.changes }}
steps:
- name: Checkout the repo
uses: actions/checkout@v4
uses: actions/checkout@v6
with:
persist-credentials: false
- name: Detect changes
Expand Down Expand Up @@ -144,7 +144,7 @@ jobs:
${{ contains(fromJson(needs.changes.outputs.all_changes), matrix.product.name)
|| contains(fromJson(needs.changes.outputs.all_changes), 'shared')
|| needs.changes.outputs.non_src_changes == 'true' }}
uses: actions/checkout@v4
uses: actions/checkout@v6
with:
persist-credentials: false
submodules: recursive
Expand Down Expand Up @@ -197,7 +197,7 @@ jobs:
&& (contains(fromJson(needs.changes.outputs.all_changes), matrix.product.name)
|| contains(fromJson(needs.changes.outputs.all_changes), 'shared')
|| needs.changes.outputs.non_src_changes == 'true') }}
uses: baptiste0928/cargo-install@904927dbe77864e0f2281519fe9d5bd097a220b3 # v3.1.1
uses: baptiste0928/cargo-install@b687c656bda5733207e629b50a22bf68974a0305 # v3.3.2
with:
crate: svm-rs
version: "0.5.17"
Expand Down Expand Up @@ -273,7 +273,7 @@ jobs:
|| contains(fromJson(needs.changes.outputs.all_changes), 'shared')
|| needs.changes.outputs.non_src_changes == 'true')
&& matrix.product.setup.run-coverage }}
uses: hrishikesh-kadam/setup-lcov@f5da1b26b0dcf5d893077a3c4f29cf78079c841d # v1.0.0
uses: hrishikesh-kadam/setup-lcov@6c1aa0cc9e1c02f9f58f01ac599f1064ccc83470 # v1.1.0

- name: Run coverage for ${{ matrix.product.name }}
if:
Expand Down Expand Up @@ -307,7 +307,7 @@ jobs:
|| contains(fromJson(needs.changes.outputs.all_changes), 'shared')
|| needs.changes.outputs.non_src_changes == 'true')
&& matrix.product.setup.run-coverage }}
uses: zgosalvez/github-actions-report-lcov@a546f89a65a0cdcd82a92ae8d65e74d450ff3fbc # v4.1.4
uses: zgosalvez/github-actions-report-lcov@4eb99c09644c30cceb609413620bd9e1bf80ee79 # v6.0.1
with:
update-comment: false
coverage-files: ./contracts${{ matrix.product.setup.subfolder || '' }}/lcov.info.pruned
Expand All @@ -323,12 +323,12 @@ jobs:
runs-on: ubuntu-22.04
steps:
- name: Checkout this repository
uses: actions/checkout@v4
uses: actions/checkout@v6
with:
persist-credentials: false

- name: Checkout .github repository
uses: actions/checkout@v4
uses: actions/checkout@v6
with:
persist-credentials: false
repository: smartcontractkit/.github
Expand All @@ -342,7 +342,7 @@ jobs:
uses: ./.github/actions/install-solidity-foundry

- name: Set up Python
uses: actions/setup-python@v5
uses: actions/setup-python@v6
with:
python-version: "3.8"

Expand Down Expand Up @@ -373,7 +373,7 @@ jobs:
# in that case we extract new issues introduced by the changes by using an LLM model
- name: Upload Slither results for current branch
if: needs.changes.outputs.sol_mod_only == 'true'
uses: actions/upload-artifact@v4
uses: actions/upload-artifact@v6
timeout-minutes: 2
continue-on-error: true
with:
Expand All @@ -384,7 +384,7 @@ jobs:
# we need to upload scripts and configuration in case base_ref doesn't have the scripts, or they are in different version
- name: Upload Slither scripts
if: needs.changes.outputs.sol_mod_only == 'true'
uses: actions/upload-artifact@v4
uses: actions/upload-artifact@v6
timeout-minutes: 2
continue-on-error: true
with:
Expand All @@ -394,7 +394,7 @@ jobs:

- name: Upload configs
if: needs.changes.outputs.sol_mod_only == 'true'
uses: actions/upload-artifact@v4
uses: actions/upload-artifact@v6
timeout-minutes: 2
with:
name: tmp-configs-${{ github.sha }}
Expand All @@ -405,21 +405,21 @@ jobs:

- name: Checkout earlier version of this repository
if: needs.changes.outputs.sol_mod_only == 'true'
uses: actions/checkout@v4
uses: actions/checkout@v6
with:
persist-credentials: false
ref: ${{ github.base_ref }}

- name: Download Slither scripts
if: needs.changes.outputs.sol_mod_only == 'true'
uses: actions/download-artifact@v4
uses: actions/download-artifact@v7
with:
name: tmp-slither-scripts-${{ github.sha }}
path: ./dot_github/tools/scripts/solidity

- name: Download configs
if: needs.changes.outputs.sol_mod_only == 'true'
uses: actions/download-artifact@v4
uses: actions/download-artifact@v7
with:
name: tmp-configs-${{ github.sha }}
path: contracts/configs
Expand Down Expand Up @@ -456,7 +456,7 @@ jobs:

- name: Upload Slither report
if: needs.changes.outputs.sol_mod_only == 'true'
uses: actions/upload-artifact@v4
uses: actions/upload-artifact@v6
timeout-minutes: 10
continue-on-error: true
with:
Expand All @@ -467,7 +467,7 @@ jobs:

- name: Download Slither results for current branch
if: needs.changes.outputs.sol_mod_only == 'true'
uses: actions/download-artifact@v4
uses: actions/download-artifact@v7
with:
name: slither-reports-current-${{ github.sha }}
path: contracts/slither-reports-current
Expand Down Expand Up @@ -520,7 +520,7 @@ jobs:
sol_files: ${{ needs.changes.outputs.not_test_sol_modified_files }}

- name: Upload Slither reports
uses: actions/upload-artifact@v4
uses: actions/upload-artifact@v6
timeout-minutes: 10
continue-on-error: true
with:
Expand All @@ -532,7 +532,7 @@ jobs:
- name: Find Slither comment in the PR
# We only want to create the comment if the PR is not modified by a bot
if: "(github.event_name == 'push' && github.event.pusher.username && ! contains(github.event.pusher.username, '[bot]')) || (github.event_name != 'push' && ! contains(github.actor, '[bot]'))"
uses: peter-evans/find-comment@3eae4d37986fb5a8592848f6a574fdf654e61f9e # v3.0.0
uses: peter-evans/find-comment@b30e6a3c0ed37e7c023ccd3f1db5c6c0b0c23aad # v4.0.0
id: find-comment
with:
issue-number: ${{ github.event.pull_request.number }}
Expand All @@ -559,7 +559,7 @@ jobs:
- name: Create or update Slither comment in the PR
# We only want to create the comment if the PR is not modified by a bot
if: "(github.event_name == 'push' && github.event.pusher.username && ! contains(github.event.pusher.username, '[bot]')) || (github.event_name != 'push' && ! contains(github.actor, '[bot]'))"
uses: peter-evans/create-or-update-comment@71345be0265236311c031f5c7866368bd1eff043 # v4.0.0
uses: peter-evans/create-or-update-comment@e8674b075228eee787fea43ef493e45ece1004c9 # v5.0.0
with:
comment-id: ${{ steps.find-comment.outputs.comment-id }}
issue-number: ${{ github.event.pull_request.number }}
Expand All @@ -570,7 +570,7 @@ jobs:
edit-mode: replace

- name: Remove temp artifacts
uses: geekyeggo/delete-artifact@24928e75e6e6590170563b8ddae9fac674508aa1 # v5.0
uses: geekyeggo/delete-artifact@f275313e70c08f6120db482d7a6b98377786765b # v5.1.0
with:
name: tmp-*

Expand Down Expand Up @@ -599,7 +599,7 @@ jobs:
steps:
- name: Checkout the repo
if: ${{ contains(fromJson(needs.changes.outputs.all_changes), matrix.product.name) || needs.changes.outputs.non_src_changes == 'true' }}
uses: actions/checkout@v4
uses: actions/checkout@v6
with:
persist-credentials: false
submodules: recursive
Expand Down
14 changes: 7 additions & 7 deletions .github/workflows/solidity-traceability.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
changesets_files: ${{ steps.files-changed.outputs.changesets_files }}
steps:
- name: Checkout the repo
uses: actions/checkout@v4
uses: actions/checkout@v6
with:
persist-credentials: false

Expand Down Expand Up @@ -59,7 +59,7 @@ jobs:
# Include the pull request ref in the checkout action to prevent merge commit
# https://github.com/actions/checkout?tab=readme-ov-file#checkout-pull-request-head-commit-instead-of-merge-commit
- name: Checkout the repo
uses: actions/checkout@v4
uses: actions/checkout@v6
with:
persist-credentials: false
ref: ${{ github.event.pull_request.head.sha }}
Expand All @@ -73,7 +73,7 @@ jobs:
aws-region: ${{ secrets.AWS_REGION }}

- name: Make a comment
uses: thollander/actions-comment-pull-request@fabd468d3a1a0b97feee5f6b9e499eab0dd903f6 # v2.5.0
uses: thollander/actions-comment-pull-request@24bffb9b452ba05a4f3f77933840a6a841d1b32b # v3.0.1
with:
message: |
I see you updated files related to `contracts`. Please run `pnpm changeset` in the `contracts` directory to add a changeset.
Expand All @@ -95,7 +95,7 @@ jobs:
uses: ./.github/actions/setup-nodejs

- name: Checkout .Github repository
uses: actions/checkout@v4
uses: actions/checkout@v6
with:
persist-credentials: false
repository: smartcontractkit/.github
Expand Down Expand Up @@ -157,7 +157,7 @@ jobs:
JIRA_API_TOKEN: ${{ secrets.JIRA_API_TOKEN }}

# Commit appended changeset file back to repo
- uses: planetscale/ghcommit-action@13a844326508cdefc72235201bb0446d6d10a85f # v0.1.6
- uses: planetscale/ghcommit-action@25309d8005ac7c3bcd61d3fe19b69e0fe47dbdde # v0.2.20
with:
commit_message: "[Bot] Update changeset file with jira issues"
repo: ${{ github.repository }}
Expand All @@ -176,7 +176,7 @@ jobs:
echo "Jira issue key related to solidity review: ${{ env.SOLIDITY_REVIEW_JIRA_ISSUE_KEY }}"

- name: Find traceability comment in the PR
uses: peter-evans/find-comment@3eae4d37986fb5a8592848f6a574fdf654e61f9e # v3.0.0
uses: peter-evans/find-comment@b30e6a3c0ed37e7c023ccd3f1db5c6c0b0c23aad # v4.0.0
if: steps.enforce-solidity-review.outputs.solidity_review_ticket_found == 'true'
id: find-comment
with:
Expand All @@ -185,7 +185,7 @@ jobs:
body-includes: 'Solidity Review Jira issue'

- name: Create or update traceability comment in the PR
uses: peter-evans/create-or-update-comment@71345be0265236311c031f5c7866368bd1eff043 # v4.0.0
uses: peter-evans/create-or-update-comment@e8674b075228eee787fea43ef493e45ece1004c9 # v5.0.0
if: steps.enforce-solidity-review.outputs.solidity_review_ticket_found == 'true'
with:
comment-id: ${{ steps.find-comment.outputs.comment-id }}
Expand Down
Loading
Loading