Skip to content

Commit

Permalink
Inital project commit
Browse files Browse the repository at this point in the history
  • Loading branch information
complexspaces committed Apr 23, 2021
0 parents commit f7b7cd5
Show file tree
Hide file tree
Showing 18 changed files with 1,319 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/audit.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: Security audit
on:
schedule:
- cron: '0 0 * * 0'
push:
paths:
- '**/Cargo.toml'
- '**/Cargo.lock'
pull_request:

jobs:
audit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions-rs/audit-check@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
57 changes: 57 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
on:
push:
branches:
- main
pull_request:

name: CI

jobs:
clippy:
name: Clippy
runs-on: ubuntu-latest
strategy:
matrix:
rust:
- stable
# MSRV
- 1.46.0
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: ${{ matrix.rust }}
components: clippy
- uses: actions-rs/cargo@v1
with:
command: clippy
args: -- -D clippy::dbg_macro -D warnings -D missing_docs -F unused_must_use

test:
name: Test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
- uses: actions-rs/cargo@v1
with:
command: test

fmt:
name: Rustfmt
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
components: rustfmt
- uses: actions-rs/cargo@v1
with:
command: fmt
args: --all -- --check
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/target
12 changes: 12 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# electron-hardener changelog

Notable changes to this project will be documented in the [keep a changelog](https://keepachangelog.com/en/1.0.0/) format.

## [Unreleased]

## [0.1.0] - 2021-04-23

Inital release

[Unreleased]: https://github.com/1Password/password-rules-parser/compare/v0.1.0...HEAD
[0.1.0]: https://github.com/1Password/electron-hardener/releases/tag/v0.1.0
96 changes: 96 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

21 changes: 21 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
[package]
name = "electron-hardener"
version = "0.1.0"
authors = ["ComplexSpaces <[email protected]>", "1Password"]
description = "Utility to remove features from Electron that modify runtime behavior"
keywords = ["electron", "security", "hardening"]
repository = "https://github.com/1Password/electron-hardener"
edition = "2018"
license = "MIT OR Apache-2.0"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[[bin]]
name = "electron-hardener"
path = "src/bin/main.rs"

[dependencies]
regex = { version = "1", default-features = false, features = ["std", "perf"] }

[dev-dependencies]
enum-iterator = "0.6"
Loading

0 comments on commit f7b7cd5

Please sign in to comment.