Skip to content
Open
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
10 changes: 9 additions & 1 deletion .github/workflows/bytecode-verification.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,17 @@ on:
jobs:
bytecode-verification:
runs-on: ubuntu-latest
permissions:
id-token: write
steps:
- name: Harden the runner
uses: step-security/harden-runner@95d9a5deda9de15063e7595e9719c11c38c90ae2 # v2.13.2
with:
egress-policy: block
policy: global-allowed-endpoints-policy

- name: Check out repository code
uses: actions/checkout@v4
uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4.3.0

- name: Setup CI Environment
uses: ./.github/composite-actions/setup-ci
Expand Down
12 changes: 10 additions & 2 deletions .github/workflows/check-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,16 +28,24 @@ permissions:
jobs:
post_run_hardhat_tests:
runs-on: ubuntu-latest
permissions:
id-token: write
steps:
- name: Harden the runner
uses: step-security/harden-runner@95d9a5deda9de15063e7595e9719c11c38c90ae2 # v2.13.2
with:
egress-policy: block
policy: global-allowed-endpoints-policy

- name: Download test results
uses: actions/download-artifact@v4
uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0
with:
pattern: junit-report-*
run-id: ${{ github.event.workflow_run.id }}
github-token: ${{ secrets.GITHUB_TOKEN }}

- name: Publish combined test report
uses: mikepenz/action-junit-report@v4
uses: mikepenz/action-junit-report@db71d41eb79864e25ab0337e395c352e84523afe # v4.3.1
with:
check_name: upload_test_results
job_summary: true
Expand Down
19 changes: 16 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,17 @@ env:
jobs:
run_ci_tests:
runs-on: ubuntu-latest
permissions:
id-token: write
steps:
- name: Harden the runner
uses: step-security/harden-runner@95d9a5deda9de15063e7595e9719c11c38c90ae2 # v2.13.2
with:
egress-policy: block
policy: global-allowed-endpoints-policy

- name: Check out repository code
uses: actions/checkout@v4
uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4.3.0

- name: Setup CI Environment
uses: ./.github/composite-actions/setup-ci
Expand Down Expand Up @@ -68,8 +76,13 @@ jobs:
- grep: "FiatTokenV1:.*|FiatTokenV1_1:.*|FiatTokenV2:.*|FiatTokenV2_1:.*|FiatTokenV2_2:.*|gas costs"
invert: true
steps:
- name: Harden the runner (Audit all outbound calls)
uses: step-security/harden-runner@f4a75cfd619ee5ce8d5b864b0d183aff3c69b55a # v2.13.1
with:
egress-policy: audit

- name: Check out repository code
uses: actions/checkout@v4
uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4.3.0

- name: Setup CI Environment
uses: ./.github/composite-actions/setup-ci
Expand All @@ -82,7 +95,7 @@ jobs:

- name: Upload test results to artifacts
if: always()
uses: actions/upload-artifact@v4
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
with:
name: junit-report-${{ hashFiles('report/junit.xml') }}
path: report/junit.xml
Expand Down
14 changes: 11 additions & 3 deletions .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,17 @@ jobs:
run_coverage:
runs-on: ubuntu-latest
if: ${{ github.event.label.name == 'needs_coverage' }}
permissions:
id-token: write
steps:
- name: Harden the runner
uses: step-security/harden-runner@95d9a5deda9de15063e7595e9719c11c38c90ae2 # v2.13.2
with:
egress-policy: block
policy: global-allowed-endpoints-policy

- name: Check out repository code
uses: actions/checkout@v4
uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4.3.0

- name: Setup CI Environment
uses: ./.github/composite-actions/setup-ci
Expand All @@ -42,7 +50,7 @@ jobs:

- name: Report coverage to PR
id: report-coverage
uses: sidx1024/report-nyc-coverage-github-action@v1.2.7
uses: sidx1024/report-nyc-coverage-github-action@8adfb1be4a23deee7b1eaf0dc3000317eedaeab5 # v1.2.7
with:
coverage_file: "coverage/coverage-summary.json"
base_coverage_file: ""
Expand All @@ -54,7 +62,7 @@ jobs:
fromJSON(steps.report-coverage.outputs.total_branches_coverage_percent_raw) < 98 ||
fromJSON(steps.report-coverage.outputs.total_statements_coverage_percent_raw) < 100 ||
fromJSON(steps.report-coverage.outputs.total_functions_coverage_percent_raw) < 100
uses: actions/github-script@v7
uses: actions/github-script@f28e40c7f34bde8b3046d885e986cb6290c5673b # v7.1.0
with:
script: |
core.setFailed('Test coverage is under the threshold')
Loading