forked from static-web-server/static-web-server
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3 from wasix-org/wasix-compat
WASIX compatibility
- Loading branch information
Showing
11 changed files
with
1,056 additions
and
855 deletions.
There are no files selected for viewing
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,28 +1,28 @@ | ||
name: audit | ||
on: | ||
schedule: | ||
- cron: '10 01 * * *' # Every day at 01:10 UTC | ||
push: | ||
branches: | ||
- master | ||
paths: | ||
- "**/Cargo.lock" | ||
- "**/Cargo.toml" | ||
pull_request: | ||
branches: | ||
- master | ||
paths: | ||
- "**/Cargo.lock" | ||
- "**/Cargo.toml" | ||
# name: audit | ||
# on: | ||
# schedule: | ||
# - cron: '10 01 * * *' # Every day at 01:10 UTC | ||
# push: | ||
# branches: | ||
# - master | ||
# paths: | ||
# - "**/Cargo.lock" | ||
# - "**/Cargo.toml" | ||
# pull_request: | ||
# branches: | ||
# - master | ||
# paths: | ||
# - "**/Cargo.lock" | ||
# - "**/Cargo.toml" | ||
|
||
jobs: | ||
audit: | ||
runs-on: ubuntu-22.04 | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 1 | ||
# jobs: | ||
# audit: | ||
# runs-on: ubuntu-22.04 | ||
# steps: | ||
# - uses: actions/checkout@v3 | ||
# with: | ||
# fetch-depth: 1 | ||
|
||
- uses: actions-rs/audit-check@v1 | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
# - uses: actions-rs/audit-check@v1 | ||
# with: | ||
# token: ${{ secrets.GITHUB_TOKEN }} |
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,64 +1,64 @@ | ||
name: code-analyzer | ||
on: | ||
push: | ||
branches: | ||
- master | ||
paths: | ||
- .github/workflows/devel.yml | ||
- .github/workflows/devel.code-analyzer.yml | ||
- .cargo/config.toml | ||
- Cargo.lock | ||
- Cargo.toml | ||
- src/** | ||
- tests/** | ||
merge_group: | ||
branches: | ||
- master | ||
pull_request: | ||
branches: | ||
- master | ||
paths: | ||
- .github/workflows/devel.yml | ||
- .github/workflows/devel.code-analyzer.yml | ||
- .cargo/config.toml | ||
- Cargo.lock | ||
- Cargo.toml | ||
- src/** | ||
- tests/** | ||
schedule: | ||
- cron: '20 02 * * 1' # Runs at 02:20, only on Monday | ||
# name: code-analyzer | ||
# on: | ||
# push: | ||
# branches: | ||
# - master | ||
# paths: | ||
# - .github/workflows/devel.yml | ||
# - .github/workflows/devel.code-analyzer.yml | ||
# - .cargo/config.toml | ||
# - Cargo.lock | ||
# - Cargo.toml | ||
# - src/** | ||
# - tests/** | ||
# merge_group: | ||
# branches: | ||
# - master | ||
# pull_request: | ||
# branches: | ||
# - master | ||
# paths: | ||
# - .github/workflows/devel.yml | ||
# - .github/workflows/devel.code-analyzer.yml | ||
# - .cargo/config.toml | ||
# - Cargo.lock | ||
# - Cargo.toml | ||
# - src/** | ||
# - tests/** | ||
# schedule: | ||
# - cron: '20 02 * * 1' # Runs at 02:20, only on Monday | ||
|
||
jobs: | ||
analyze: | ||
name: analyze | ||
runs-on: ubuntu-22.04 | ||
permissions: | ||
contents: read | ||
security-events: write | ||
actions: read | ||
# jobs: | ||
# analyze: | ||
# name: analyze | ||
# runs-on: ubuntu-22.04 | ||
# permissions: | ||
# contents: read | ||
# security-events: write | ||
# actions: read | ||
|
||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 1 | ||
# steps: | ||
# - name: Checkout repository | ||
# uses: actions/checkout@v4 | ||
# with: | ||
# fetch-depth: 1 | ||
|
||
- name: Install stable toolchain | ||
uses: dtolnay/rust-toolchain@stable | ||
with: | ||
toolchain: stable | ||
components: rustfmt, clippy | ||
# - name: Install stable toolchain | ||
# uses: dtolnay/rust-toolchain@stable | ||
# with: | ||
# toolchain: stable | ||
# components: rustfmt, clippy | ||
|
||
- name: Install crates | ||
run: cargo install clippy-sarif sarif-fmt | ||
# - name: Install crates | ||
# run: cargo install clippy-sarif sarif-fmt | ||
|
||
- name: Run clippy | ||
continue-on-error: true | ||
run: | | ||
cargo clippy --all-features --message-format=json | clippy-sarif | tee rust-clippy-results.sarif | sarif-fmt | ||
# - name: Run clippy | ||
# continue-on-error: true | ||
# run: | | ||
# cargo clippy --all-features --message-format=json | clippy-sarif | tee rust-clippy-results.sarif | sarif-fmt | ||
|
||
- name: Upload analysis results to GitHub | ||
uses: github/codeql-action/upload-sarif@v2 | ||
with: | ||
sarif_file: rust-clippy-results.sarif | ||
wait-for-processing: true | ||
# - name: Upload analysis results to GitHub | ||
# uses: github/codeql-action/upload-sarif@v2 | ||
# with: | ||
# sarif_file: rust-clippy-results.sarif | ||
# wait-for-processing: true |
Oops, something went wrong.