summaryrefslogtreecommitdiffstats
path: root/.github
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-21 20:56:19 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-21 20:56:19 +0000
commit0b6210cd37b68b94252cb798598b12974a20e1c1 (patch)
treee371686554a877842d95aa94f100bee552ff2a8e /.github
parentInitial commit. (diff)
downloadnode-undici-0b6210cd37b68b94252cb798598b12974a20e1c1.tar.xz
node-undici-0b6210cd37b68b94252cb798598b12974a20e1c1.zip
Adding upstream version 5.28.2+dfsg1+~cs23.11.12.3.upstream/5.28.2+dfsg1+_cs23.11.12.3upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '.github')
-rw-r--r--.github/ISSUE_TEMPLATE/bug-report.md34
-rw-r--r--.github/ISSUE_TEMPLATE/feature-request.md28
-rw-r--r--.github/PULL_REQUEST_TEMPLATE.md53
-rw-r--r--.github/dependabot.yml23
-rw-r--r--.github/workflows/bench.yml43
-rw-r--r--.github/workflows/codeql.yml78
-rw-r--r--.github/workflows/dependency-review.yml27
-rw-r--r--.github/workflows/fuzz.yml39
-rw-r--r--.github/workflows/lint.yml17
-rw-r--r--.github/workflows/nodejs.yml45
-rw-r--r--.github/workflows/publish-undici-types.yml26
-rw-r--r--.github/workflows/scorecard.yml56
12 files changed, 469 insertions, 0 deletions
diff --git a/.github/ISSUE_TEMPLATE/bug-report.md b/.github/ISSUE_TEMPLATE/bug-report.md
new file mode 100644
index 0000000..8ff7029
--- /dev/null
+++ b/.github/ISSUE_TEMPLATE/bug-report.md
@@ -0,0 +1,34 @@
+---
+name: Bug Report
+about: Report an issue
+title: ''
+labels: bug
+assignees: ''
+
+---
+
+## Bug Description
+
+<!-- A clear and concise description of what the bug is. -->
+
+## Reproducible By
+
+<!-- A step by step list on how the bug can be reproduced for examination. -->
+
+## Expected Behavior
+
+<!-- A clear and concise description of what you expected to happen. -->
+
+## Logs & Screenshots
+
+<!-- If applicable, add screenshots to help explain your problem, or
+alternatively add your console logs here. -->
+
+## Environment
+
+<!-- This is just your OS and environment information [e.g. Ubuntu 18.04 LTS,
+Node v14.14.0] -->
+
+### Additional context
+
+<!-- Add any other context about the problem here. -->
diff --git a/.github/ISSUE_TEMPLATE/feature-request.md b/.github/ISSUE_TEMPLATE/feature-request.md
new file mode 100644
index 0000000..0c3a4ff
--- /dev/null
+++ b/.github/ISSUE_TEMPLATE/feature-request.md
@@ -0,0 +1,28 @@
+---
+name: Feature Request
+about: Make a suggestion on a feature or improvement for the project
+title: ''
+labels: enhancement
+assignees: ''
+
+---
+
+## This would solve...
+
+<!-- A clear and concise description of the problem this feature request relates
+to, if applicable. -->
+
+## The implementation should look like...
+
+<!-- A clear and concise description of how you expect this to be resolved or
+implemented. -->
+
+## I have also considered...
+
+<!-- A clear and concise description of any alternative solutions or features
+you have considered. -->
+
+## Additional context
+
+<!-- Add any other context, screenshots or ideas about the feature request
+here. -->
diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md
new file mode 100644
index 0000000..2620ffb
--- /dev/null
+++ b/.github/PULL_REQUEST_TEMPLATE.md
@@ -0,0 +1,53 @@
+<!--
+Before submitting a Pull Request, please read our contribution guidelines, which
+can be found at CONTRIBUTING.md in the repository root.
+
+For code changes:
+1. Include tests for any bug fixes or new features.
+2. Update documentation if relevant.
+3. Ensure that tests and linting pass.
+
+You will also need to ensure that your contribution complies with the
+Developer's Certificate of Origin, outlined in CONTRIBUTING.md
+-->
+
+## This relates to...
+
+<!-- List the issues this resolves or relates to here (if applicable) -->
+
+## Rationale
+
+<!-- Briefly explain the purpose of this pull request, if not already
+justifiable with the above section. If it is, you may omit this section. -->
+
+## Changes
+
+<!-- Write a summary or list of changes here -->
+
+### Features
+
+<!-- List the new features here (if applicable), or write N/A if not -->
+
+### Bug Fixes
+
+<!-- List the fixed bugs here (if applicable), or write N/A if not -->
+
+### Breaking Changes and Deprecations
+
+<!-- List the breaking changes (changes that modify the existing API) and
+deprecations (removed features) here -->
+
+## Status
+
+<!-- KEY: S = Skipped, x = complete -->
+
+
+- [ ] I have read and agreed to the [Developer's Certificate of Origin][cert]
+- [ ] Tested
+- [ ] Benchmarked (**optional**)
+- [ ] Documented
+- [ ] Review ready
+- [ ] In review
+- [ ] Merge ready
+
+[cert]: https://github.com/nodejs/undici/blob/main/CONTRIBUTING.md
diff --git a/.github/dependabot.yml b/.github/dependabot.yml
new file mode 100644
index 0000000..18b9fbf
--- /dev/null
+++ b/.github/dependabot.yml
@@ -0,0 +1,23 @@
+version: 2
+updates:
+ - package-ecosystem: "github-actions"
+ directory: "/"
+ schedule:
+ interval: "monthly"
+ open-pull-requests-limit: 10
+
+ - package-ecosystem: "npm"
+ directory: "/"
+ schedule:
+ interval: "weekly"
+ open-pull-requests-limit: 10
+
+ - package-ecosystem: docker
+ directory: /build
+ schedule:
+ interval: daily
+
+ - package-ecosystem: pip
+ directory: /test/wpt/tests/resources/test
+ schedule:
+ interval: daily
diff --git a/.github/workflows/bench.yml b/.github/workflows/bench.yml
new file mode 100644
index 0000000..281bdc6
--- /dev/null
+++ b/.github/workflows/bench.yml
@@ -0,0 +1,43 @@
+name: Benchmarks
+on:
+ - push
+ - pull_request
+
+permissions:
+ contents: read
+
+jobs:
+ benchmark_current:
+ name: benchmark current
+ runs-on: ubuntu-latest
+ steps:
+ - name: Checkout Code
+ uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0
+ with:
+ persist-credentials: false
+ ref: ${{ github.base_ref }}
+ - name: Setup Node
+ uses: actions/setup-node@8f152de45cc393bb48ce5d89d36b731f54556e65 # v4.0.0
+ with:
+ node-version: lts/*
+ - name: Install Modules
+ run: npm i
+ - name: Run Benchmark
+ run: npm run bench
+
+ benchmark_branch:
+ name: benchmark branch
+ runs-on: ubuntu-latest
+ steps:
+ - name: Checkout Code
+ uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0
+ with:
+ persist-credentials: false
+ - name: Setup Node
+ uses: actions/setup-node@8f152de45cc393bb48ce5d89d36b731f54556e65 # v4.0.0
+ with:
+ node-version: lts/*
+ - name: Install Modules
+ run: npm i
+ - name: Run Benchmark
+ run: npm run bench
diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml
new file mode 100644
index 0000000..3c44e66
--- /dev/null
+++ b/.github/workflows/codeql.yml
@@ -0,0 +1,78 @@
+# For most projects, this workflow file will not need changing; you simply need
+# to commit it to your repository.
+#
+# You may wish to alter this file to override the set of languages analyzed,
+# or to provide custom queries or build logic.
+#
+# ******** NOTE ********
+# We have attempted to detect the languages in your repository. Please check
+# the `language` matrix defined below to confirm you have the correct set of
+# supported CodeQL languages.
+#
+name: "CodeQL"
+
+on:
+ push:
+ branches: ["main"]
+ pull_request:
+ # The branches below must be a subset of the branches above
+ branches: ["main"]
+ schedule:
+ - cron: "0 0 * * 1"
+
+permissions:
+ contents: read
+
+jobs:
+ analyze:
+ name: Analyze
+ runs-on: ubuntu-latest
+ permissions:
+ actions: read
+ contents: read
+ security-events: write
+
+ strategy:
+ fail-fast: false
+ matrix:
+ language: ["javascript", "python", "typescript"]
+ # CodeQL supports [ $supported-codeql-languages ]
+ # Learn more about CodeQL language support at https://aka.ms/codeql-docs/language-support
+
+ steps:
+ - name: Harden Runner
+ uses: step-security/harden-runner@1b05615854632b887b69ae1be8cbefe72d3ae423 # v2.6.0
+ with:
+ egress-policy: audit
+
+ - name: Checkout repository
+ uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0
+
+ # Initializes the CodeQL tools for scanning.
+ - name: Initialize CodeQL
+ uses: github/codeql-action/init@74483a38d39275f33fcff5f35b679b5ca4a26a99 # v2.3.3
+ with:
+ languages: ${{ matrix.language }}
+ # If you wish to specify custom queries, you can do so here or in a config file.
+ # By default, queries listed here will override any specified in a config file.
+ # Prefix the list here with "+" to use these queries and those in the config file.
+
+ # Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
+ # If this step fails, then you should remove it and run the build manually (see below)
+ - name: Autobuild
+ uses: github/codeql-action/autobuild@74483a38d39275f33fcff5f35b679b5ca4a26a99 # v2.3.3
+
+ # ℹī¸ Command-line programs to run using the OS shell.
+ # 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun
+
+ # If the Autobuild fails above, remove it and uncomment the following three lines.
+ # modify them (or add more) to build your code if your project, please refer to the EXAMPLE below for guidance.
+
+ # - run: |
+ # echo "Run, Build Application using script"
+ # ./location_of_script_within_repo/buildscript.sh
+
+ - name: Perform CodeQL Analysis
+ uses: github/codeql-action/analyze@74483a38d39275f33fcff5f35b679b5ca4a26a99 # v2.3.3
+ with:
+ category: "/language:${{matrix.language}}"
diff --git a/.github/workflows/dependency-review.yml b/.github/workflows/dependency-review.yml
new file mode 100644
index 0000000..0e356c7
--- /dev/null
+++ b/.github/workflows/dependency-review.yml
@@ -0,0 +1,27 @@
+# Dependency Review Action
+#
+# This Action will scan dependency manifest files that change as part of a Pull Request,
+# surfacing known-vulnerable versions of the packages declared or updated in the PR.
+# Once installed, if the workflow run is marked as required,
+# PRs introducing known-vulnerable packages will be blocked from merging.
+#
+# Source repository: https://github.com/actions/dependency-review-action
+name: 'Dependency Review'
+on: [pull_request]
+
+permissions:
+ contents: read
+
+jobs:
+ dependency-review:
+ runs-on: ubuntu-latest
+ steps:
+ - name: Harden Runner
+ uses: step-security/harden-runner@1b05615854632b887b69ae1be8cbefe72d3ae423 # v2.6.0
+ with:
+ egress-policy: audit
+
+ - name: 'Checkout Repository'
+ uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0
+ - name: 'Dependency Review'
+ uses: actions/dependency-review-action@6c5ccdad469c9f8a2996bfecaec55a631a347034 # v3.1.0
diff --git a/.github/workflows/fuzz.yml b/.github/workflows/fuzz.yml
new file mode 100644
index 0000000..29d7490
--- /dev/null
+++ b/.github/workflows/fuzz.yml
@@ -0,0 +1,39 @@
+name: Fuzzing
+
+on: [push, pull_request]
+
+permissions:
+ contents: read
+
+jobs:
+ fuzzing:
+ name: Fuzz
+ runs-on: ubuntu-latest
+
+ steps:
+ - uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0
+ with:
+ persist-credentials: false
+
+ - name: Setup Node
+ uses: actions/setup-node@8f152de45cc393bb48ce5d89d36b731f54556e65 # v4.0.0
+ with:
+ node-version: lts/*
+
+ - name: Install
+ run: |
+ npm install
+
+ - name: Run fuzzing
+ timeout-minutes: 10
+ run: |
+ npm run fuzz
+
+ - uses: actions/upload-artifact@a8a3f3ad30e3422c9c7b888a15615d19a852ae32 # v3.1.3
+ if: ${{ failure() }}
+ with:
+ name: undici-fuzz-results-${{ github.sha }}
+ path: |
+ corpus/
+ crash-*
+ fuzz-results-*.json
diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml
new file mode 100644
index 0000000..2eb2b6b
--- /dev/null
+++ b/.github/workflows/lint.yml
@@ -0,0 +1,17 @@
+name: Lint
+on: [push, pull_request]
+permissions:
+ contents: read
+
+jobs:
+ lint:
+ runs-on: ubuntu-latest
+ steps:
+ - uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0
+ with:
+ persist-credentials: false
+ - uses: actions/setup-node@8f152de45cc393bb48ce5d89d36b731f54556e65 # v4.0.0
+ with:
+ node-version: lts/*
+ - run: npm install
+ - run: npm run lint
diff --git a/.github/workflows/nodejs.yml b/.github/workflows/nodejs.yml
new file mode 100644
index 0000000..4c3a77e
--- /dev/null
+++ b/.github/workflows/nodejs.yml
@@ -0,0 +1,45 @@
+# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node
+# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
+
+
+name: Node CI
+
+on:
+ push:
+ branches:
+ - current
+ - next
+ - 'v*'
+ pull_request:
+
+jobs:
+ build:
+ name: Test
+ uses: pkgjs/action/.github/workflows/node-test.yaml@v0.1.7
+ with:
+ runs-on: ubuntu-latest, windows-latest
+ test-command: npm run coverage:ci
+ timeout-minutes: 15
+ post-test-steps: |
+ - name: Coverage Report
+ uses: codecov/codecov-action@v3
+ include: |
+ - runs-on: ubuntu-latest
+ node-version: 16.8
+ exclude: |
+ - runs-on: windows-latest
+ node-version: 14
+ - runs-on: windows-latest
+ node-version: 16
+ automerge:
+ if: >
+ github.event_name == 'pull_request' && github.event.pull_request.user.login == 'dependabot[bot]'
+ needs: build
+ runs-on: ubuntu-latest
+ permissions:
+ pull-requests: write
+ contents: write
+ steps:
+ - uses: fastify/github-action-merge-dependabot@59fc8817458fac20df8884576cfe69dbb77c9a07 # v3.9.1
+ with:
+ github-token: ${{ secrets.GITHUB_TOKEN }}
diff --git a/.github/workflows/publish-undici-types.yml b/.github/workflows/publish-undici-types.yml
new file mode 100644
index 0000000..3f8fea3
--- /dev/null
+++ b/.github/workflows/publish-undici-types.yml
@@ -0,0 +1,26 @@
+name: Publish undici-types
+
+on:
+ push:
+ tags:
+ - 'v*'
+ workflow_dispatch:
+
+permissions:
+ contents: read
+
+jobs:
+ publish:
+ runs-on: ubuntu-latest
+ steps:
+ - uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0
+ - uses: actions/setup-node@8f152de45cc393bb48ce5d89d36b731f54556e65 # v4.0.0
+ with:
+ node-version: '16.x'
+ registry-url: 'https://registry.npmjs.org'
+ - run: npm install
+ - run: node scripts/generate-undici-types-package-json.js
+ - run: npm publish
+ working-directory: './types'
+ env:
+ NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
diff --git a/.github/workflows/scorecard.yml b/.github/workflows/scorecard.yml
new file mode 100644
index 0000000..f52ad55
--- /dev/null
+++ b/.github/workflows/scorecard.yml
@@ -0,0 +1,56 @@
+# 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.
+
+name: Scorecard supply-chain security
+on:
+ # For Branch-Protection check. Only the default branch is supported. See
+ # https://github.com/ossf/scorecard/blob/main/docs/checks.md#branch-protection
+ branch_protection_rule:
+ # To guarantee Maintained check is occasionally updated. See
+ # https://github.com/ossf/scorecard/blob/main/docs/checks.md#maintained
+ schedule:
+ - cron: '16 10 * * 2'
+ push:
+ branches: [ "main" ]
+
+# Declare default permissions as read only.
+permissions: read-all
+
+jobs:
+ analysis:
+ name: Scorecard analysis
+ runs-on: ubuntu-latest
+ permissions:
+ # Needed to upload the results to code-scanning dashboard.
+ security-events: write
+ # Needed to publish results and get a badge (see publish_results below).
+ id-token: write
+
+ steps:
+ - name: "Checkout code"
+ uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0
+ with:
+ persist-credentials: false
+
+ - name: "Run analysis"
+ uses: ossf/scorecard-action@0864cf19026789058feabb7e87baa5f140aac736 # v2.3.1
+ with:
+ results_file: results.sarif
+ results_format: sarif
+ publish_results: true
+
+ # Upload the results as artifacts (optional). Commenting out will disable uploads of run results in SARIF
+ # format to the repository Actions tab.
+ - name: "Upload artifact"
+ uses: actions/upload-artifact@a8a3f3ad30e3422c9c7b888a15615d19a852ae32 # v3.1.3
+ with:
+ name: SARIF file
+ path: results.sarif
+ retention-days: 5
+
+ # Upload the results to GitHub's code scanning dashboard.
+ - name: "Upload to code-scanning"
+ uses: github/codeql-action/upload-sarif@74483a38d39275f33fcff5f35b679b5ca4a26a99 # v2.22.5
+ with:
+ sarif_file: results.sarif