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

debugger bot non update #3

Open
wants to merge 24 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
fac1221
"hardhat": patch
Dargon789 Jan 27, 2024
21729dc
Added support for Typed objects
Dargon789 Feb 22, 2024
5ec17b1
Create SECURITY.md
Dargon789 Mar 26, 2024
952d3d0
Bump the npm_and_yarn group across 3 directories with 11 updates
dependabot[bot] Apr 11, 2024
8acfabf
Delete SECURITY.md
Dargon789 Jun 2, 2024
acc48fc
Merge pull request #5 from Dargon789/dependabot/npm_and_yarn/docs/npm…
Dargon789 Jun 2, 2024
e7801cf
Bump the npm_and_yarn group across 1 directory with 2 updates
dependabot[bot] Jun 18, 2024
7cfd0ae
Merge pull request #7 from Dargon789/dependabot/npm_and_yarn/docs/npm…
Dargon789 Jul 4, 2024
28baf2c
Create SECURITY.md
Dargon789 Jul 4, 2024
cc9d92b
Create jekyll-gh-pages.yml
Dargon789 Jul 4, 2024
f8cc6d1
Create codeql.yml
Dargon789 Aug 17, 2024
d478d75
Create apisec-scan.yml
Dargon789 Aug 17, 2024
b51ba9a
Create eslint.yml
Dargon789 Aug 17, 2024
9fbc379
azure-pipelines nodejs
Dargon789 Aug 18, 2024
42e0190
azure-pipelines
Dargon789 Aug 29, 2024
4388d8d
Bump webpack in /docs in the npm_and_yarn group across 1 directory (#8)
dependabot[bot] Oct 20, 2024
5746198
Bump the npm_and_yarn group across 1 directory with 6 updates (#9)
dependabot[bot] Oct 20, 2024
2f0fe7b
Bump body-parser in /docs in the npm_and_yarn group across 1 director…
dependabot[bot] Oct 20, 2024
e87f452
Fix code scanning alert no. 21: Incomplete multi-character sanitization
Dargon789 Oct 20, 2024
61a3322
Update issue templates
Dargon789 Oct 20, 2024
e7a2e24
Fix code scanning alert no. 21: Incomplete multi-character sanitizati…
Dargon789 Oct 27, 2024
7f69cce
Create defender-for-devops.yml
Dargon789 Oct 27, 2024
1986d11
Create sonarcloud.yml
Dargon789 Oct 27, 2024
d36f046
Bump elliptic in /docs in the npm_and_yarn group across 1 directory (…
dependabot[bot] Nov 3, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
5 changes: 5 additions & 0 deletions .changeset/beige-ladybugs-confess.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"hardhat": patch
---

Added a notification when a new Hardhat version is available
5 changes: 5 additions & 0 deletions .changeset/bright-onions-switch.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@nomicfoundation/hardhat-chai-matchers": patch
---

Added support for Typed objects (thanks @RenanSouza2!)
7 changes: 7 additions & 0 deletions .changeset/curvy-cherries-beg.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
"@nomicfoundation/hardhat-chai-matchers": patch
"hardhat": patch
"@nomicfoundation/hardhat-viem": patch
---

Improved loading performance
5 changes: 5 additions & 0 deletions .changeset/dry-pianos-scream.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"hardhat": patch
---

Fixed a bug during project initialization when using yarn or pnpm
5 changes: 5 additions & 0 deletions .changeset/modern-fishes-look.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"hardhat": patch
---

Added a fix to prevent submitting transactions with 0 priority fee (thanks @itsdevbear!)
5 changes: 5 additions & 0 deletions .changeset/twelve-mails-heal.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@nomicfoundation/hardhat-verify": patch
---

Added support for programmatic verification in Sourcify
15 changes: 15 additions & 0 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"name": "Hardhat + EDR",
"image": "mcr.microsoft.com/devcontainers/base:bullseye",
"features": {
"ghcr.io/devcontainers/features/node:1": {
"version": "16" /* Keep in sync with the oldest version of Node.js that Hardhat supports */
},
"ghcr.io/devcontainers/features/rust:1": {
"version": "1.70" /* Keep in sync with rust-toolchain */,
"profile": "default"
}
},
/* libudev-dev is required by hardhat-ledger. pkg-config is required by EDR to use OpenSSL */
"postCreateCommand": "sudo apt update && sudo apt install -y libudev-dev pkg-config"
}
38 changes: 38 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
---
name: Bug report
about: Create a report to help us improve
title: ''
labels: ''
assignees: ''

---

**Describe the bug**
A clear and concise description of what the bug is.

**To Reproduce**
Steps to reproduce the behavior:
1. Go to '...'
2. Click on '....'
3. Scroll down to '....'
4. See error

**Expected behavior**
A clear and concise description of what you expected to happen.

**Screenshots**
If applicable, add screenshots to help explain your problem.

**Desktop (please complete the following information):**
- OS: [e.g. iOS]
- Browser [e.g. chrome, safari]
- Version [e.g. 22]

**Smartphone (please complete the following information):**
- Device: [e.g. iPhone6]
- OS: [e.g. iOS8.1]
- Browser [e.g. stock browser, safari]
- Version [e.g. 22]

**Additional context**
Add any other context about the problem here.
10 changes: 10 additions & 0 deletions .github/ISSUE_TEMPLATE/custom.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
---
name: Custom issue template
about: Describe this issue template's purpose here.
title: ''
labels: ''
assignees: ''

---


20 changes: 20 additions & 0 deletions .github/ISSUE_TEMPLATE/feature_request.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
---
name: Feature request
about: Suggest an idea for this project
title: ''
labels: ''
assignees: ''

---

**Is your feature request related to a problem? Please describe.**
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

**Describe the solution you'd like**
A clear and concise description of what you want to happen.

**Describe alternatives you've considered**
A clear and concise description of any alternative solutions or features you've considered.

**Additional context**
Add any other context or screenshots about the feature request here.
6 changes: 6 additions & 0 deletions .github/ISSUE_TEMPLATE/other-issue.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
---
name: Other issue
about: Other kind of issue. Please don't use this to ask questions.
title: ''
labels: ''
assignees: ''

---


22 changes: 13 additions & 9 deletions .github/workflows/LATEST_DEPENDENCY_VERSIONS.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,28 +6,32 @@ on:
workflow_dispatch:

jobs:
test-without-yarn-lock:
name: Test without yarn.lock
test-without-pnpm-lock-yaml:
name: Test without pnpm-lock.yaml
strategy:
matrix:
system: ["ubuntu-latest", "windows-latest"]
runs-on: ${{ matrix.system }}
steps:
- uses: actions/checkout@v2
- uses: pnpm/action-setup@v2
with:
version: 8
- uses: actions/setup-node@v2
with:
node-version: 14
- uses: actions/checkout@v2
- name: Delete yarn.lock
run: "rm yarn.lock"
node-version: 16
cache: "pnpm"
- name: Delete pnpm-lock.yaml
run: "rm pnpm-lock.yaml"
- name: Install
run: yarn
run: pnpm install --no-frozen-lockfile
- name: List dependencies
run: yarn list
run: pnpm list -r --depth 2
- name: Run tests
env:
DO_NOT_SET_THIS_ENV_VAR____IS_HARDHAT_CI: true
FORCE_COLOR: 3
run: yarn test || (echo "===== Retry =====" && yarn test)
run: pnpm test || (echo "===== Retry =====" && pnpm test)
- name: Notify failures
if: failure()
uses: slackapi/[email protected]
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/add-issue-to-project.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,5 @@ jobs:
with:
project-url: https://github.com/orgs/NomicFoundation/projects/4
github-token: ${{ secrets.ADD_TO_PROJECT_PAT }}
labeled: area:edr
label-operator: NOT
6 changes: 5 additions & 1 deletion .github/workflows/add-label-to-new-issue.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,15 @@ jobs:
);

if (statusLabel === undefined) {
console.log("Author association:", issue.data.author_association);
const isCollaborator = ["OWNER", "MEMBER", "COLLABORATOR"].includes(issue.data.author_association)
const label = isCollaborator ? "status:ready" : "status:triaging"

await github.rest.issues.addLabels({
owner: context.issue.owner,
repo: context.issue.repo,
issue_number: context.issue.number,
labels: ["status:triaging"]
labels: [label]
});
} else {
console.log(`Issue already has a status: ${statusLabel.name}`);
Expand Down
71 changes: 71 additions & 0 deletions .github/workflows/apisec-scan.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.

# APIsec addresses the critical need to secure APIs before they reach production.
# APIsec provides the industry’s only automated and continuous API testing platform that uncovers security vulnerabilities and logic flaws in APIs.
# Clients rely on APIsec to evaluate every update and release, ensuring that no APIs go to production with vulnerabilities.

# How to Get Started with APIsec.ai
# 1. Schedule a demo at https://www.apisec.ai/request-a-demo .
#
# 2. Register your account at https://cloud.apisec.ai/#/signup .
#
# 3. Register your API . See the video (https://www.youtube.com/watch?v=MK3Xo9Dbvac) to get up and running with APIsec quickly.
#
# 4. Get GitHub Actions scan attributes from APIsec Project -> Configurations -> Integrations -> CI-CD -> GitHub Actions
#
# apisec-run-scan
#
# This action triggers the on-demand scans for projects registered in APIsec.
# If your GitHub account allows code scanning alerts, you can then upload the sarif file generated by this action to show the scan findings.
# Else you can view the scan results from the project home page in APIsec Platform.
# The link to view the scan results is also displayed on the console on successful completion of action.

# This is a starter workflow to help you get started with APIsec-Scan Actions

name: APIsec

# Controls when the workflow will run
on:
# Triggers the workflow on push or pull request events but only for the "main" branch
# Customize trigger events based on your DevSecOps processes.
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
schedule:
- cron: '31 16 * * 2'

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:


permissions:
contents: read

jobs:

Trigger_APIsec_scan:
permissions:
security-events: write # for github/codeql-action/upload-sarif to upload SARIF results
actions: read # only required for a private repository by github/codeql-action/upload-sarif to get the Action run status
runs-on: ubuntu-latest

steps:
- name: APIsec scan
uses: apisec-inc/apisec-run-scan@025432089674a28ba8fb55f8ab06c10215e772ea
with:
# The APIsec username with which the scans will be executed
apisec-username: ${{ secrets.apisec_username }}
# The Password of the APIsec user with which the scans will be executed
apisec-password: ${{ secrets.apisec_password}}
# The name of the project for security scan
apisec-project: "VAmPI"
# The name of the sarif format result file The file is written only if this property is provided.
sarif-result-file: "apisec-results.sarif"
- name: Import results
uses: github/codeql-action/upload-sarif@v3
with:
sarif_file: ./apisec-results.sarif
60 changes: 60 additions & 0 deletions .github/workflows/autoassign-issues.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
name: Issue autoassignment

on:
issues:
types: [opened]

jobs:
assign-new-issue:
runs-on: ubuntu-latest
permissions:
issues: write
steps:
- uses: actions/github-script@v6
with:
script: |
// each user has a chance of (p - (previousP ?? 0)) to be assigned
const potentialAssignees = [
["fvictorio", 0.5],
["schaable", 0.75],
["ChristopherDedominici", 1.0],
];

let assignee;
const r = Math.random();
console.log("r:", r);
for (const [username, p] of potentialAssignees) {
if (r < p) {
assignee = username;
break;
}
}

if (assignee === undefined) {
throw new Error("An assignee should've been set");
}

console.log("assignee:", assignee);

console.log("Fetch issue", context.issue.number);
const issue = await github.rest.issues.get({
owner: context.issue.owner,
repo: context.issue.repo,
issue_number: context.issue.number,
});

console.log("Author association:", issue.data.author_association);
const isCollaborator = ["OWNER", "MEMBER", "COLLABORATOR"].includes(
issue.data.author_association
);
console.log("Is collaborator?", isCollaborator);

// we only assign triage issues from external users
if (!isCollaborator) {
await github.rest.issues.addAssignees({
owner: context.issue.owner,
repo: context.issue.repo,
issue_number: context.issue.number,
assignees: [assignee],
});
}
21 changes: 21 additions & 0 deletions .github/workflows/azure-pipelines.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# Node.js
# Build a general Node.js project with npm.
# Add steps that analyze code, save build artifacts, deploy, and more:
# https://docs.microsoft.com/azure/devops/pipelines/languages/javascript

trigger:
- master

pool:
vmImage: ubuntu-latest

steps:
- task: NodeTool@0
inputs:
versionSpec: '10.x'
displayName: 'Install Node.js'

- script: |
npm install
npm run build
displayName: 'npm install and build'
2 changes: 2 additions & 0 deletions .github/workflows/check-changeset-added.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ jobs:
check-if-changeset:
name: Check that PR has a changeset
runs-on: ubuntu-latest
# don't run this check in the changesets PR
if: github.head_ref != 'changeset-release/main'
steps:
- uses: actions/github-script@v6
with:
Expand Down
Loading