Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
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
  •  
  •  
  •  
37 changes: 0 additions & 37 deletions .buildkite/contracts-eth.yml

This file was deleted.

13 changes: 0 additions & 13 deletions .buildkite/contracts-near.yml

This file was deleted.

15 changes: 0 additions & 15 deletions .buildkite/npm-package.yml

This file was deleted.

70 changes: 0 additions & 70 deletions .buildkite/pipeline.yml

This file was deleted.

12 changes: 0 additions & 12 deletions .catalog-info.yaml

This file was deleted.

2 changes: 0 additions & 2 deletions .dockerignore

This file was deleted.

56 changes: 0 additions & 56 deletions .github/workflows/contracts-eth.yml

This file was deleted.

3 changes: 1 addition & 2 deletions .github/workflows/contracts-near.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
on:
push:
branches:
- master
- the-merge
- main
pull_request:
name: Contracts (NEAR)
jobs:
Expand Down
21 changes: 0 additions & 21 deletions .github/workflows/lint.yml

This file was deleted.

43 changes: 43 additions & 0 deletions .github/workflows/rust_lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: Rust Linting

on:
push:
branches: [ main ]
paths:
- 'eth2near/**'
pull_request:
branches: [ main ]
paths:
- 'eth2near/**'

env:
CARGO_TERM_COLOR: always

jobs:
lint:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./eth2near
steps:
- uses: actions/checkout@v4

- name: Set up Rust
uses: dtolnay/rust-toolchain@stable
with:
toolchain: 1.86.0
components: clippy, rustfmt
target: wasm32-unknown-unknown

- name: Cache Rust dependencies
uses: Swatinem/rust-cache@v2
with:
workspaces: |
./eth2near
cache-on-failure: true
cache-all-crates: true

- name: Run linters
run: cargo clippy --all-targets --all-features -- -D warnings -D clippy::all
- name: Check formatting
run: cargo fmt --all -- --check
Comment on lines +18 to +43

Check warning

Code scanning / CodeQL

Workflow does not contain permissions Medium

Actions job or workflow does not limit the permissions of the GITHUB_TOKEN. Consider setting an explicit permissions block, using the following as a minimal starting point: {contents: read}

Copilot Autofix

AI 11 months ago

To fix the issue, we will add a permissions block at the root level of the workflow file. This block will explicitly set the permissions to contents: read, which is sufficient for the linting job since it only needs to read the repository's contents. This change ensures that the workflow adheres to the principle of least privilege and avoids granting unnecessary permissions.


Suggested changeset 1
.github/workflows/rust_lint.yml

Autofix patch

Autofix patch
Run the following command in your local git repository to apply this patch
cat << 'EOF' | git apply
diff --git a/.github/workflows/rust_lint.yml b/.github/workflows/rust_lint.yml
--- a/.github/workflows/rust_lint.yml
+++ b/.github/workflows/rust_lint.yml
@@ -12,2 +12,5 @@
 
+permissions:
+  contents: read
+
 env:
EOF
@@ -12,2 +12,5 @@

permissions:
contents: read

env:
Copilot is powered by AI and may make mistakes. Always verify output.
18 changes: 0 additions & 18 deletions .github/workflows/security-analysis.yml

This file was deleted.

50 changes: 0 additions & 50 deletions .github/workflows/sigma-prime.yml

This file was deleted.

1 change: 0 additions & 1 deletion .prettierignore

This file was deleted.

11 changes: 0 additions & 11 deletions .prettierrc

This file was deleted.

11 changes: 0 additions & 11 deletions CHANGELOG.md

This file was deleted.

2 changes: 0 additions & 2 deletions CODEOWNERS

This file was deleted.

Loading
Loading