Skip to content
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

Create stale.yml #516

Open
wants to merge 153 commits into
base: v2
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
153 commits
Select commit Hold shift + click to select a range
43add11
MINT p0 contracts and test framework
eztierney Aug 2, 2018
207af4b
Added comments, events, and modified Controller to use workers instea…
mirathewhite Sep 12, 2018
a2d9abd
Merge pull request #209 from mirathewhite/multi-issuer
eztierney Sep 12, 2018
7514170
All tests use global Accounts object from AccountUtils.
mirathewhite Sep 12, 2018
8131df8
replacing use of tokenUtils.tokenOwnerAccount with Accounts.tokenOwne…
mirathewhite Sep 13, 2018
630a87c
Add more unit tests
mirathewhite Sep 13, 2018
161e94b
Merge pull request #211 from mirathewhite/multi-issuer
mirathewhite Sep 14, 2018
0f002ec
replacing A. with Accounts. for code clarity
mirathewhite Sep 14, 2018
5c13426
Merge pull request #212 from mirathewhite/code-coverage
o-a-hudson Sep 14, 2018
3db7a98
changing token to minterManager and MintableTokenInterface to MinterM…
mirathewhite Sep 14, 2018
e33452e
updated new unit tests to use minterManager instead of token
mirathewhite Sep 14, 2018
91675a4
Merge pull request #213 from mirathewhite/name-change
eztierney Sep 14, 2018
d00ca6c
Add remove controller
mirathewhite Sep 17, 2018
6b0c1e1
Merge pull request #214 from mirathewhite/removeController
eztierney Sep 17, 2018
4478bb4
fixing failed 'remove controller'
mirathewhite Sep 18, 2018
77190af
Merge pull request #215 from mirathewhite/removeController
eztierney Sep 18, 2018
9cab5ee
add ControllerState object to ControllerTestUtils.js
mirathewhite Sep 20, 2018
7dc6d8f
checkVariables takes as input either FiatTokenV1 or MintController
mirathewhite Sep 20, 2018
0eb61a6
replaced literal objects with actual objects
mirathewhite Sep 20, 2018
fd3ded7
Using library funciton clone(), removing logObject, and creating chec…
mirathewhite Sep 26, 2018
7059470
[CENT-331]: Unify checkVariables and checkState (#221)
mirathewhite Sep 28, 2018
37445bd
Merged upstream
mirathewhite Sep 28, 2018
59ec401
Adding spreadsheets
mirathewhite Sep 28, 2018
620df42
Adding parse-csv package
mirathewhite Sep 28, 2018
60101f3
basic functionality working with *csv spreadsheets
mirathewhite Oct 4, 2018
43aaaf0
Added pending support, relative paths
mirathewhite Oct 4, 2018
3895e57
updated README
mirathewhite Oct 4, 2018
9f524bf
Added unit test completeness testing
mirathewhite Oct 4, 2018
8cbeefd
Merge pull request #223 from mirathewhite/verifyCSV
eztierney Oct 4, 2018
836cf2b
Basic tests (#224)
mirathewhite Oct 9, 2018
fd43895
add requirement to configureController(c,m) that m is not 0 (#225)
mirathewhite Oct 10, 2018
4b9ebf3
Fixed bug in MasterMinter.sol constructor and added MasterMinter unit…
mirathewhite Oct 11, 2018
40fdc07
beforeEach sends MintController as argument to initialization function
mirathewhite Oct 11, 2018
4d45c5a
Merge pull request #226 from mirathewhite/testMasterMinter
o-a-hudson Oct 12, 2018
0f4aa09
README file for MasterMinter
mirathewhite Oct 17, 2018
922b8de
Merge master into multi-issuer to pick up CI changes. (#231)
eztierney Oct 18, 2018
e9b6a08
cleaned up Completeness output and colors/checkmarks (#232)
mirathewhite Oct 22, 2018
dab7989
fixed typos
mirathewhite Oct 22, 2018
0ca51ea
Added ArgumentTests (#230)
mirathewhite Oct 22, 2018
1e8064c
Merge pull request #229 from mirathewhite/readme
o-a-hudson Oct 22, 2018
dc693a0
[CENT-361] Modify TokenTestUtils function buildExpectedState/getActua…
mirathewhite Oct 24, 2018
7b2c573
[CENT-355] Write ArgumentTests (#234)
mirathewhite Oct 24, 2018
8acd8e3
create parallel travis test environments (#235)
mirathewhite Oct 25, 2018
f7f8124
Added error msgs to require statements in minting/* contracts (#242)
mirathewhite Jan 10, 2019
d888649
line spacing according to Solidity style guide
walkerq Jan 9, 2019
272d0d2
use double quotes in import statements per style guide
walkerq Jan 9, 2019
b0471f2
remove double space in MintController constructor
walkerq Jan 9, 2019
8b731f8
remove extra line in comment of configureController
walkerq Jan 9, 2019
1522709
delete unnecessary leading ./ in import Ownable
walkerq Jan 11, 2019
cd0ad7a
modifiers moved to their own line per style guide
walkerq Jan 11, 2019
04278df
visibility modifiers come first per style guide
walkerq Jan 11, 2019
1503358
Fixes expectRevert not checking revert string (#250)
o-a-hudson Jan 11, 2019
4e0047d
Merge pull request #243 from centrehq/line-spacing
eztierney Jan 11, 2019
0c405cd
explicit conversion of minterManager to address type
walkerq Jan 14, 2019
a9cf321
Move MinterManagementInterface to its own file (#251)
0xj0hnny Jan 14, 2019
aa862cd
Lack of check might lead to gas burn (#248)
0xj0hnny Jan 14, 2019
87d5a78
Merge pull request #271 from walkerq/explicit-address-cast
eztierney Jan 14, 2019
71e07c6
Adds integrity check on development environment dependencies (#261)
o-a-hudson Jan 14, 2019
a2b26cd
#252: add null address check (#247)
0xj0hnny Jan 16, 2019
b2dc210
(style) add newline to configureMinter, reorder visibility modifier i…
walkerq Jan 16, 2019
43b5f74
prefix parameters in MintController with underscores for consistency …
walkerq Jan 16, 2019
7ad74d7
removeController reverts if controllers[C] is 0 (#273)
walkerq Jan 16, 2019
1a62713
CENT-631 - No way to decrement an allowance without reconfiguring min…
mgrissa Jan 17, 2019
acdf6b5
remove hardcoded boolean values being returned from three functions (…
walkerq Jan 17, 2019
b762bd4
Updates dependency installation instructions (#276)
o-a-hudson Jan 17, 2019
b3a9853
CENT-639 & CENT-643 - Remove empty Constructor & Adding getters for c…
mgrissa Jan 17, 2019
fbb6cfe
Document multi-issuer contracts according to NatSpec guidelines (#274)
walkerq Jan 18, 2019
12e6458
added copy of MasterMiner code from etherscan
mirathewhite Mar 19, 2019
f7e063f
added copy of MasterMiner code from etherscan (#280)
mirathewhite Mar 19, 2019
af5e894
Merge branch 'multi-issuer' of https://github.com/centrehq/centre-tok…
mirathewhite Mar 22, 2019
6b10dd4
added event tests
mirathewhite Mar 24, 2019
45dc385
added e2e tests
mirathewhite Mar 25, 2019
37b18b2
Merge pull request #282 from mirathewhite/eventTests
eztierney Mar 25, 2019
6a8e480
Merge pull request #283 from mirathewhite/e2etests
eztierney Mar 25, 2019
405091f
Add migration to deploy master minter
eztierney Apr 5, 2019
d7ad665
Fix addresses
eztierney Apr 5, 2019
d81edc8
Merge pull request #284 from eztierney/master-minter-deploy
mirathewhite Apr 9, 2019
c6bc95d
Enable syntax highlighting
dmdque Apr 15, 2019
3ba876b
Merge pull request #286 from dmdque/multi-issuer
eztierney Apr 16, 2019
5013157
Merge pull request #311 from centrehq/v2
petejkim Jul 30, 2020
681329f
Remove functions not present in EIP-3009
petejkim Dec 15, 2020
a009b09
Conform to EIP-3009
petejkim Dec 16, 2020
a174995
Add an intialization function for v2.1
petejkim Dec 17, 2020
cd51835
Implement V2_1Upgrader and migration scripts
petejkim Dec 20, 2020
e0e9a92
Update Ganache
petejkim Jan 15, 2021
7e49288
Add additional checks to V2_1Upgrader test
petejkim Jan 15, 2021
db0feab
Merge pull request #317 from CoinbaseStablecoin/v2.1
petejkim Jan 25, 2021
37039f0
Add version method
petejkim Feb 9, 2021
b5aba6c
Merge pull request #320 from CoinbaseStablecoin/add_version
petejkim Feb 18, 2021
3043821
Merge branch 'master' of github.com:centrehq/centre-tokens into multi…
walkerq May 27, 2021
9f492f1
resolve conflicts
walkerq May 27, 2021
a6b5299
linting, test cleanup
walkerq May 28, 2021
2d4bf1e
cleanup
walkerq May 28, 2021
092756a
resolve a few more conflicts
walkerq May 28, 2021
2920b9f
cleanup
walkerq May 28, 2021
3608fb4
whitespace
walkerq May 28, 2021
89bf348
delete redundant comment
walkerq May 28, 2021
98b673a
delete unnecessary relative path in deploy script
walkerq Jun 1, 2021
f433c29
cr
walkerq Jun 1, 2021
788ced6
leave verification README alone
walkerq Jun 1, 2021
572fd5f
delete start-ganache script
walkerq Jun 1, 2021
7d5e39e
copyright fixes
walkerq Jun 1, 2021
0d3cab1
Merge pull request #327 from walkerq/multi-issuer-upgrade-to-sol-0.6
eztierney Jun 3, 2021
ed7b130
Setup repo and CI
circle-aloychan Jul 11, 2023
0c71a91
Cached chain ID and domain separator
yvonnezhangc Jul 19, 2023
99dcc17
Create V2_2Upgrader.sol
circle-aloychan Jul 13, 2023
41e65fb
Refactor upgraders
circle-aloychan Jul 21, 2023
5169071
Add EIP-1271 related utility contracts
yvonnezhangc Jul 27, 2023
8332ba5
Re-route EIP-2612 and EIP-3009 functions to use SignatureChecker
yvonnezhangc Aug 1, 2023
ad75174
Add unified interface for EOA and contract wallet signatures
yvonnezhangc Aug 8, 2023
1ed8f78
Blacklist updates (part 1)
circle-aloychan Jul 28, 2023
dd03da9
Blacklist updates (part 2)
circle-aloychan Aug 16, 2023
5119a85
Allow omission of deadline check in permit
yvonnezhangc Aug 10, 2023
0a041df
Remove unused imports and fix solhint warnings
yvonnezhangc Aug 17, 2023
e5e7a2a
Remove blacklist modifier
yvonnezhangc Aug 17, 2023
77e230b
Update / add NatSpec documentations
circle-aloychan Aug 18, 2023
2c67e26
Allow symbol renaming in FiatTokenV2_2.initializeV2_2
yvonnezhangc Aug 30, 2023
9f64031
Centralize ganache accounts initialization
yvonnezhangc Sep 6, 2023
70800ee
Add script to get blacklisted accounts
circle-aloychan Sep 18, 2023
684d187
Address TODOs
circle-aloychan Oct 13, 2023
e70c672
Add script to call read-only functions on a contract
circle-aloychan Oct 13, 2023
f2cdf23
Add deploy script for MockERC1271 wallet
yvonnezhangc Oct 13, 2023
661a79a
Remove custom-error rule from solhint
yvonnezhangc Oct 17, 2023
a1b5455
Update copyright licenses
yvonnezhangc Aug 17, 2023
08e3b16
Update documentations
circle-aloychan Oct 13, 2023
35d66ae
Add migration option to directly deploy v2.2 token
yvonnezhangc Oct 19, 2023
acdd059
Update validateAccountsToBlacklist
circle-aloychan Oct 24, 2023
dd6fb33
Add CHANGELOG.md
circle-aloychan Oct 24, 2023
405efc1
Merge pull request #425 from yvonnezhangc/release_v2_2
yvonnezhangc Nov 9, 2023
c87173e
Add documentation for Bridged USDC Standard
ams9198 Nov 20, 2023
dd3ee17
Add documentation for Bridged USDC Standard (#428)
eztierney Nov 21, 2023
13d87ed
Update README to included Bridged USDC Standard doc
ams9198 Nov 27, 2023
bd3c07f
Rejigger ordering
ams9198 Nov 27, 2023
87d4413
Link to Bridged USDC Standard doc from README (#429)
ams9198 Nov 27, 2023
6573754
chore(ci): implement code scanning (#435)
jscaltreto Jan 23, 2024
74027af
Update bridged_USDC_standard.md (#440)
blincf Mar 14, 2024
0828084
Update bridged_USDC_standard.md (#441)
blincf Mar 15, 2024
c582e58
Modernize development environment
circle-aloychan Mar 27, 2024
ca48b2c
Fix pr-scan workflow and flaky tests
circle-aloychan Mar 29, 2024
2af605e
Modernize development environment (#442)
eztierney Apr 1, 2024
7406115
Add Celo related files
zhenghui-w Apr 22, 2024
501555c
Add Celo related files (#453)
circle-aloychan Apr 30, 2024
65a726e
Fix Foundry installations and make miscellaneous changes
circle-aloychan May 3, 2024
0fef359
Fix Foundry installation and make miscellaneous changes (#455)
circle-aloychan May 6, 2024
415a4c7
Update bridged USDC standard
circle-aloychan May 20, 2024
806a40c
Update bridged USDC standard (#458)
circle-aloychan May 21, 2024
f6a88cc
chore(deps): gha node 20 upgrade
zepeng811 Jun 19, 2024
f64f01f
chore(deps): gha node 20 upgrade (#463)
circle-aloychan Jun 21, 2024
574b947
add a GitHub workflow for automated bytecode verification, update bri…
akroeger-circle Oct 28, 2024
a4ba37d
Automated Bytecode Verification for Tokens Following the Bridged USDC…
akroeger-circle Oct 28, 2024
1452c65
Update HackerOne program link (#487)
yuliang29 Dec 9, 2024
b1a15b2
Remove verification_artifacts/ from ignore files
circle-aloychan Dec 24, 2024
061a6f6
Create stale.yml
Armanidashh Feb 3, 2025
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
3 changes: 0 additions & 3 deletions .babelrc

This file was deleted.

100 changes: 100 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,100 @@
# Copyright 2024 Circle Internet Group, Inc. All rights reserved.
#
# SPDX-License-Identifier: Apache-2.0
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

##############################
# Private Key Configurations #
##############################=
# The key to a pre-funded deployer address
DEPLOYER_PRIVATE_KEY=

############################
# FiatToken Configurations #
############################
# The ERC20 name of the FiatToken.
TOKEN_NAME=USDC

# The ERC20 symbol of the FiatToken.
TOKEN_SYMBOL=USDC

# The fiat currency that that FiatToken represents.
TOKEN_CURRENCY=USD

# The ERC20 decimals for the FiatToken.
TOKEN_DECIMALS=6

# [OPTIONAL] The address to a deployed FiatTokenProxy contract.
# FIAT_TOKEN_PROXY_ADDRESS=

# [OPTIONAL] The address to a deployed FiatToken implementation contract.
# FIAT_TOKEN_IMPLEMENTATION_ADDRESS=

# The address of the FiatTokenProxy's admin.
PROXY_ADMIN_ADDRESS=

# The address of the FiatToken's owner.
OWNER_ADDRESS=

# The address of the MasterMinter's owner.
MASTER_MINTER_OWNER_ADDRESS=

# [OPTIONAL] The address of the FiatToken's pauser. Defaults to the owner address.
# PAUSER_ADDRESS=

# [OPTIONAL] The address of the FiatToken's blacklister. Defaults to the owner address.
# BLACKLISTER_ADDRESS=

# [OPTIONAL] The address to which locked funds are sent to. Only applicable for version 2 -> 2.1 upgrades. Defaults to the owner address.
# LOST_AND_FOUND_ADDRESS=

##########################
# Network Configurations #
##########################
# [OPTIONAL] The URL to a mainnet JSON-RPC node.
# MAINNET_RPC_URL=

# [OPTIONAL] The URL to a testnet JSON-RPC node.
# TESTNET_RPC_URL=

# The percentage to multiply gas usage estimations by (eg. 200 to double the estimation). Defaults to 130.
GAS_MULTIPLIER=110

################################
# Celo Specific Configurations #
################################

# [OPTIONAL] The address to a deployed FiatTokenCelo implementation contract.
# FIAT_TOKEN_CELO_IMPLEMENTATION_ADDRESS=

# [OPTIONAL] The address to a deployed FiatTokenProxy contract for FiatTokenCeloV2_2. Required for Celo Fee Adapter deployment.
# FIAT_TOKEN_CELO_PROXY_ADDRESS=

# [OPTIONAL] The address of the Fee Adapter Proxy's admin. Required for Celo Fee Adapter deployment.
# FEE_ADAPTER_PROXY_ADMIN_ADDRESS=

# [OPTIONAL] The number of decimals to scale the USDC contract to. Required for Celo Fee Adapter deployment.
# FEE_ADAPTER_DECIMALS=

################################
# Miscellaneous Configurations #
################################
# The file name from which to read the list of addresses to blacklist
BLACKLIST_FILE_NAME=blacklist.remote.json

# [OPTIONAL] The API key to an Etherscan flavor block explorer.
# ETHERSCAN_KEY=

# [OPTIONAL] The number of runs the Solidity optimizers should perform. Defaults to 10000000.
# OPTIMIZER_RUNS=
18 changes: 16 additions & 2 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,18 @@
.DS_Store
.idea/
**/.DS_Store

artifacts/
cache/
@types/generated/

node_modules/
yarn-error.log

coverage/
@types/generated/
coverage.json

verification_artifacts/

blacklist.*.json

LICENSE
18 changes: 18 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,21 @@
/**
* Copyright 2023 Circle Internet Group, Inc. All rights reserved.
*
* SPDX-License-Identifier: Apache-2.0
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

module.exports = {
root: true,
env: {
Expand Down
1 change: 0 additions & 1 deletion .gitattributes
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
@types/generated/**/* linguist-generated=true

15 changes: 0 additions & 15 deletions .githooks/pre-commit

This file was deleted.

52 changes: 52 additions & 0 deletions .github/composite-actions/setup-ci/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
# Copyright 2024 Circle Internet Group, Inc. All rights reserved.
#
# SPDX-License-Identifier: Apache-2.0
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

name: Setup CI
runs:
using: composite
steps:
- name: Install Node
uses: actions/setup-node@v4
with:
node-version: "20.9.0"

- name: Install Foundry
uses: foundry-rs/foundry-toolchain@v1

- name: Update submodules
run: git submodule update --init --recursive
shell: bash

- name: Install Yarn
run: npm install -g [email protected]
shell: bash

- name: Get Yarn cache directory path
id: yarn-cache-dir-path
run: echo "dir=$(yarn cache dir)" >> $GITHUB_OUTPUT
shell: bash

- name: Retrieve cache
uses: actions/cache@v4
with:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-

- name: Install packages & Setup repository
run: yarn install --frozen-lockfile
shell: bash
11 changes: 11 additions & 0 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
## Summary

## Detail

## Testing

## Documentation

---

**Requested Reviewers:** @mention
33 changes: 33 additions & 0 deletions .github/resources/coverage-report-template.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
<!--
Copyright 2024 Circle Internet Group, Inc. All rights reserved.

SPDX-License-Identifier: Apache-2.0

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->

## Coverage Report

Commit: [{{short_commit_sha}}]({{commit_link}})

| Type | Coverage |
| ------------------------- | ------------------------------------- |
| Total Statements Coverage | {{total_statements_coverage_percent}} |
| Total Branches Coverage | {{total_branches_coverage_percent}} |
| Total Functions Coverage | {{total_functions_coverage_percent}} |
| Total Lines Coverage | {{total_lines_coverage_percent}} |

<details>
<summary>Details </summary>
{{files_coverage_table}}
</details>
37 changes: 37 additions & 0 deletions .github/workflows/bytecode-verification.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
# Copyright 2024 Circle Internet Group, Inc. All rights reserved.
#
# SPDX-License-Identifier: Apache-2.0
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

name: Bridged USDC deployment - Bytecode Verification
on:
pull_request:
paths:
- "**/verification_artifacts/input.json"

jobs:
bytecode-verification:
runs-on: ubuntu-latest
steps:
- name: Check out repository code
uses: actions/checkout@v4

- name: Setup CI Environment
uses: ./.github/composite-actions/setup-ci

- name: Compile contracts
run: yarn compile

- name: Run Verification
run: yarn hardhat run scripts/verifyBridgedTokenBytecode.ts --network mainnet
50 changes: 50 additions & 0 deletions .github/workflows/check-pr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
# Copyright 2024 Circle Internet Group, Inc. All rights reserved.
#
# SPDX-License-Identifier: Apache-2.0
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

name: Check PR
on:
workflow_run:
workflows: [CI]
types: [completed]

permissions:
checks: write
contents: write
actions: read

jobs:
post_run_hardhat_tests:
runs-on: ubuntu-latest
steps:
- name: Download test results
uses: actions/download-artifact@v4
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
with:
check_name: upload_test_results
job_summary: true
detailed_summary: true
commit: ${{ github.event.workflow_run.head_sha }}
report_paths: "./junit-report-*/junit.xml"

release-sbom:
if: github.event.workflow_run.event == 'push'
uses: circlefin/circle-public-github-workflows/.github/workflows/attach-release-assets.yaml@v1
Loading