-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into preact-compat-issue
- Loading branch information
Showing
463 changed files
with
4,983 additions
and
4,463 deletions.
There are no files selected for viewing
File renamed without changes.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
// For format details, see https://aka.ms/devcontainer.json. For config options, see the README at: | ||
// https://github.com/microsoft/vscode-dev-containers/tree/v0.238.1/containers/docker-existing-dockerfile | ||
{ | ||
"name": "Contribute to Astro CodeSpaces", | ||
|
||
// Sets the run context to one level up instead of the .devcontainer folder. | ||
"context": "..", | ||
|
||
// Update the 'dockerFile' property if you aren't using the standard 'Dockerfile' filename. | ||
"dockerFile": "../.Dockerfile", | ||
|
||
// Use 'forwardPorts' to make a list of ports inside the container available locally. | ||
// "forwardPorts": [], | ||
|
||
// Uncomment the next line to run commands after the container is created - for example installing curl. | ||
"postCreateCommand": "pnpm install" | ||
|
||
// Uncomment when using a ptrace-based debugger like C++, Go, and Rust | ||
// "runArgs": [ "--cap-add=SYS_PTRACE", "--security-opt", "seccomp=unconfined" ], | ||
|
||
// Uncomment to use the Docker CLI from inside the container. See https://aka.ms/vscode-remote/samples/docker-from-docker. | ||
// "mounts": [ "source=/var/run/docker.sock,target=/var/run/docker.sock,type=bind" ], | ||
|
||
// Uncomment to connect as a non-root user if you've added one. See https://aka.ms/vscode-remote/containers/non-root. | ||
// "remoteUser": "vscode" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,6 +24,7 @@ env: | |
FORCE_COLOR: true | ||
ASTRO_TELEMETRY_DISABLED: true | ||
|
||
|
||
jobs: | ||
lint: | ||
name: Lint | ||
|
@@ -79,8 +80,8 @@ jobs: | |
runs-on: ${{ matrix.os }} | ||
strategy: | ||
matrix: | ||
os: [ubuntu-latest] | ||
node_version: [14] | ||
OS: [ubuntu-latest] | ||
NODE_VERSION: [14] | ||
fail-fast: true | ||
steps: | ||
- name: Checkout | ||
|
@@ -89,10 +90,10 @@ jobs: | |
- name: Setup PNPM | ||
uses: pnpm/[email protected] | ||
|
||
- name: Setup node@${{ matrix.node_version }} | ||
- name: Setup node@${{ matrix.NODE_VERSION }} | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: ${{ matrix.node_version }} | ||
node-version: ${{ matrix.NODE_VERSION }} | ||
cache: 'pnpm' | ||
|
||
- name: Install dependencies | ||
|
@@ -102,30 +103,31 @@ jobs: | |
run: pnpm run build | ||
|
||
test: | ||
name: 'Test: ${{ matrix.os }} (node@${{ matrix.node_version }})' | ||
name: 'Test: ${{ matrix.os }} (node@${{ matrix.NODE_VERSION }})' | ||
runs-on: ${{ matrix.os }} | ||
needs: build | ||
strategy: | ||
matrix: | ||
os: [ubuntu-latest] | ||
node_version: [14, 16] | ||
OS: [ubuntu-latest, windows-latest] | ||
# TODO: Enable node@18! | ||
NODE_VERSION: [14, 16] | ||
include: | ||
- os: windows-latest | ||
node_version: 14 | ||
- os: macos-latest | ||
node_version: 14 | ||
NODE_VERSION: 14 | ||
fail-fast: false | ||
env: | ||
NODE_VERSION: ${{ matrix.NODE_VERSION }} | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
|
||
- name: Setup PNPM | ||
uses: pnpm/[email protected] | ||
|
||
- name: Setup node@${{ matrix.node_version }} | ||
- name: Setup node@${{ matrix.NODE_VERSION }} | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: ${{ matrix.node_version }} | ||
node-version: ${{ matrix.NODE_VERSION }} | ||
cache: 'pnpm' | ||
|
||
- name: Use Deno | ||
|
@@ -143,26 +145,28 @@ jobs: | |
run: pnpm run test | ||
|
||
e2e: | ||
name: 'Test (E2E): ${{ matrix.os }} (node@${{ matrix.node_version }})' | ||
name: 'Test (E2E): ${{ matrix.os }} (node@${{ matrix.NODE_VERSION }})' | ||
runs-on: ${{ matrix.os }} | ||
timeout-minutes: 20 | ||
needs: build | ||
strategy: | ||
matrix: | ||
os: [ubuntu-latest, windows-latest] | ||
node_version: [14] | ||
OS: [ubuntu-latest, windows-latest] | ||
NODE_VERSION: [14] | ||
fail-fast: false | ||
env: | ||
NODE_VERSION: ${{ matrix.NODE_VERSION }} | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
|
||
- name: Setup PNPM | ||
uses: pnpm/[email protected] | ||
|
||
- name: Setup node@${{ matrix.node_version }} | ||
- name: Setup node@${{ matrix.NODE_VERSION }} | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: ${{ matrix.node_version }} | ||
node-version: ${{ matrix.NODE_VERSION }} | ||
cache: 'pnpm' | ||
|
||
- name: Install dependencies | ||
|
@@ -175,24 +179,26 @@ jobs: | |
run: pnpm run test:e2e | ||
|
||
smoke: | ||
name: 'Test (Smoke): ${{ matrix.os }} (node@${{ matrix.node_version }})' | ||
name: 'Test (Smoke): ${{ matrix.os }} (node@${{ matrix.NODE_VERSION }})' | ||
runs-on: ${{ matrix.os }} | ||
needs: build | ||
strategy: | ||
matrix: | ||
os: [ubuntu-latest] | ||
node_version: [14] | ||
OS: [ubuntu-latest, windows-latest] | ||
NODE_VERSION: [14] | ||
env: | ||
NODE_VERSION: ${{ matrix.NODE_VERSION }} | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
|
||
- name: Setup PNPM | ||
uses: pnpm/[email protected] | ||
|
||
- name: Setup node@${{ matrix.node_version }} | ||
- name: Setup node@${{ matrix.NODE_VERSION }} | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: ${{ matrix.node_version }} | ||
node-version: ${{ matrix.NODE_VERSION }} | ||
cache: 'pnpm' | ||
|
||
- name: Checkout docs | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
--- | ||
image: | ||
file: .gitpod.Dockerfile | ||
file: .Dockerfile | ||
# Commands to start on workspace startup | ||
tasks: | ||
- init: | | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
# Astro Security | ||
|
||
## Reporting a Vulnerability | ||
|
||
To report a security issue, please email [email protected] with a detailed description of the issue, the steps you took to create the issue, affected versions, and, if known, mitigations for the issue. | ||
|
||
Please remember to include everything required for us to reproduce the issue, including but not limited to a publicly accessible git repository and/or StackBlitz repository. All code samples shared with our Security team will only be used to verify and diagnose the issue and will not be publicly shared with anyone outside of Astro's teams. Astro's Security Team members may share information only within the Astro teams on a need-to-know basis to fix the related issue in Astro. | ||
|
||
Our Security team will acknowledge receiving your email within 3 working days. | ||
|
||
<ins>**If you think you've found a security issue, please DO NOT report, discuss, or describe it on Discord, GitHub, or any other public forum; without prior contact and acknowledgment of Astro's Security team.**<ins> | ||
|
||
This project follows a 90 day disclosure timeline. | ||
|
||
**_This is detrimental to the safety of all Astro users. No exceptions._** | ||
|
||
## Embargo Policy | ||
|
||
The information members and others receive through participation in this group must not be made public, shared, or even hinted otherwise, except with prior explicit approval (which shall be handled on a case-by-case basis). This holds true until the agreed-upon public disclosure date/time is satisfied. | ||
|
||
As a clarifying example, this policy forbids Astro Security members from sharing list information with their employers; unless prior arrangements have been made directly with an employer. | ||
|
||
In the unfortunate event that you share the information beyond what is allowed by this policy, you must urgently inform the Astro Security Team of exactly what information leaked and to whom, as well as the steps that will be taken to prevent future leaks. | ||
|
||
**Repeated offenses may lead to the removal from the Security or Astro team.** |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# Defined below are the security contacts for this repo. | ||
# | ||
# They are the contact point for triaging and handling of incoming | ||
# Security issues. | ||
# | ||
# The below names agree to abide by the | ||
# [Embargo Policy](https://github.com/withastro/astro/blob/master/SECURITY.md) | ||
# and will be removed and replaced if they violate that agreement. | ||
# | ||
# DO NOT REPORT SECURITY VULNERABILITIES DIRECTLY TO THESE NAMES, FOLLOW THE | ||
# INSTRUCTIONS AT https://github.com/withastro/astro/blob/master/SECURITY.md | ||
|
||
Randall T. Vasquez (@ran-dall) | ||
Matthew Phillips (@matthewp) | ||
Nate Moore (@natemoo-re) | ||
Fred K. Schott (@fks) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
/// <reference types="astro/client" /> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.