Skip to content

Commit 5bea590

Browse files
committed
Released
0 parents  commit 5bea590

32 files changed

+6251
-0
lines changed

.DS_Store

8 KB
Binary file not shown.

.github/.DS_Store

6 KB
Binary file not shown.

.github/workflows/build.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: ci
2+
3+
on:
4+
push:
5+
branches:
6+
- "main"
7+
8+
jobs:
9+
build:
10+
runs-on: ubuntu-latest
11+
steps:
12+
-
13+
name: Checkout
14+
uses: actions/checkout@v3
15+
-
16+
name: Login to Docker Hub
17+
uses: docker/login-action@v2
18+
with:
19+
username: ${{ secrets.DOCKERHUB_USERNAME }}
20+
password: ${{ secrets.DOCKERHUB_TOKEN }}
21+
-
22+
name: Set up Docker Buildx
23+
uses: docker/setup-buildx-action@v2
24+
-
25+
name: Build and push
26+
uses: docker/build-push-action@v3
27+
with:
28+
context: .
29+
file: ./Dockerfile
30+
push: true
31+
tags: ${{ secrets.DOCKERHUB_USERNAME }}/hela:latest

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
/target
2+
.env

.travis.yml

Lines changed: 134 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,134 @@
1+
# Based on the "trust" template v0.1.2
2+
# https://github.com/japaric/trust/tree/v0.1.2
3+
4+
dist: trusty
5+
language: rust
6+
services: docker
7+
sudo: required
8+
9+
# TODO Rust builds on stable by default, this can be
10+
# overridden on a case by case basis down below.
11+
12+
env:
13+
global:
14+
# TODO Update this to match the name of your project.
15+
- CRATE_NAME=Hela
16+
17+
matrix:
18+
# TODO These are all the build jobs. Adjust as necessary. Comment out what you
19+
# don't need
20+
include:
21+
# Android
22+
# - env: TARGET=aarch64-linux-android DISABLE_TESTS=1
23+
# - env: TARGET=arm-linux-androideabi DISABLE_TESTS=1
24+
# - env: TARGET=armv7-linux-androideabi DISABLE_TESTS=1
25+
# - env: TARGET=i686-linux-android DISABLE_TESTS=1
26+
# - env: TARGET=x86_64-linux-android DISABLE_TESTS=1
27+
28+
# # iOS
29+
# - env: TARGET=aarch64-apple-ios DISABLE_TESTS=1
30+
# os: osx
31+
# - env: TARGET=armv7-apple-ios DISABLE_TESTS=1
32+
# os: osx
33+
# - env: TARGET=armv7s-apple-ios DISABLE_TESTS=1
34+
# os: osx
35+
# - env: TARGET=i386-apple-ios DISABLE_TESTS=1
36+
# os: osx
37+
# - env: TARGET=x86_64-apple-ios DISABLE_TESTS=1
38+
# os: osx
39+
40+
# Linux
41+
- env: TARGET=aarch64-unknown-linux-gnu
42+
- env: TARGET=arm-unknown-linux-gnueabi
43+
- env: TARGET=armv7-unknown-linux-gnueabihf
44+
- env: TARGET=i686-unknown-linux-gnu
45+
- env: TARGET=i686-unknown-linux-musl
46+
- env: TARGET=mips-unknown-linux-gnu
47+
- env: TARGET=mips64-unknown-linux-gnuabi64
48+
- env: TARGET=mips64el-unknown-linux-gnuabi64
49+
- env: TARGET=mipsel-unknown-linux-gnu
50+
- env: TARGET=powerpc-unknown-linux-gnu
51+
- env: TARGET=powerpc64-unknown-linux-gnu
52+
- env: TARGET=powerpc64le-unknown-linux-gnu
53+
- env: TARGET=s390x-unknown-linux-gnu DISABLE_TESTS=1
54+
- env: TARGET=x86_64-unknown-linux-gnu
55+
- env: TARGET=x86_64-unknown-linux-musl
56+
57+
# OSX
58+
- env: TARGET=i686-apple-darwin
59+
os: osx
60+
- env: TARGET=x86_64-apple-darwin
61+
os: osx
62+
63+
# *BSD
64+
- env: TARGET=i686-unknown-freebsd DISABLE_TESTS=1
65+
- env: TARGET=x86_64-unknown-freebsd DISABLE_TESTS=1
66+
- env: TARGET=x86_64-unknown-netbsd DISABLE_TESTS=1
67+
68+
# Windows
69+
- env: TARGET=x86_64-pc-windows-gnu
70+
71+
# Bare metal
72+
# These targets don't support std and as such are likely not suitable for
73+
# most crates.
74+
# - env: TARGET=thumbv6m-none-eabi
75+
# - env: TARGET=thumbv7em-none-eabi
76+
# - env: TARGET=thumbv7em-none-eabihf
77+
# - env: TARGET=thumbv7m-none-eabi
78+
79+
# Testing other channels
80+
- env: TARGET=x86_64-unknown-linux-gnu
81+
rust: nightly
82+
- env: TARGET=x86_64-apple-darwin
83+
os: osx
84+
rust: nightly
85+
86+
before_install:
87+
- set -e
88+
- rustup self update
89+
90+
install:
91+
- sh ci/install.sh
92+
- source ~/.cargo/env || true
93+
94+
script:
95+
- bash ci/script.sh
96+
97+
after_script: set +e
98+
99+
before_deploy:
100+
- sh ci/before_deploy.sh
101+
102+
deploy:
103+
# TODO update `api_key.secure`
104+
# - Create a `public_repo` GitHub token. Go to: https://github.com/settings/tokens/new
105+
# - Encrypt it: `travis encrypt 0123456789012345678901234567890123456789
106+
# - Paste the output down here
107+
api_key:
108+
secure: bEZ9Ae4EduOu9U/PW9Le7o9VdCbf/jGopc5CB+sNCWDWsecInYUcamfHZP1yz7nG3RaRagARaaU1Lf7mSyRVIyAFI6YwC2F9atnHUCpir19RHXVZMrTB9vYepTKEFBwEVYREgxFj3G4249RqBbZ8FRxGDlaZI9DNk92PNFvrx6w2ehu82619hwEkpe3+asCuRun1umqDCdl0ZVN0d7uXBrGdTrVmRY5DWg1gUqDQX1hT76w3rJej2cev/M9CZhI2Z9fXVcF2Rs1vz0o9X66xBR7m/FQyzYSdvShKl2rIPjhHYmZSvG/b6KPhz/GxNwH5hzGnMOXXYjeTIWFiKWvA8wVIBggtp69VjSo13737J5f1yqOWG+r3CQ3ZRm+yY0SpMig5K9L1LS5B732/8Eiy+y6IBuwLLaMrqDVSx0WdARLyuBTM0rwVIufrw+xQkJNfQrSnPj0mVn2UZWO6+NqTdbs1OuiRrCeiEg/I5eJB0xViGoSlM/NF2AE6Cl15knMf872GIEpmMxJ/LMINnhnfLkkx4YVkM/ZDgidIOQ4e7BESFC7UBe67S7f5wmroyvgD1pSr7W2sdt51AxEzNPpa1lfLXnh39hm3666wTiplm8kRRCUmpwPEZ7zQiUZO9TlNWU8jUopVJO6j7FmamlHjTSAzZn96BM+mOch0b8BCcX8=
109+
file_glob: true
110+
file: $CRATE_NAME-$TRAVIS_TAG-$TARGET.*
111+
on:
112+
# TODO Here you can pick which targets will generate binary releases
113+
# In this example, there are some targets that are tested using the stable
114+
# and nightly channels. This condition makes sure there is only one release
115+
# for such targets and that's generated using the stable channel
116+
condition: $TRAVIS_RUST_VERSION = stable
117+
tags: true
118+
provider: releases
119+
skip_cleanup: true
120+
121+
cache: cargo
122+
before_cache:
123+
# Travis can't cache files that are not readable by "others"
124+
- chmod -R a+r $HOME/.cargo
125+
126+
branches:
127+
only:
128+
# release tags
129+
- /^v\d+\.\d+\.\d+.*$/
130+
- master
131+
132+
notifications:
133+
email:
134+
on_success: never

.vscode/settings.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"rust-analyzer.linkedProjects": [
3+
"./Cargo.toml"
4+
]
5+
}

CONTRIBUTING.md

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
# Contributing to Code Security
2+
3+
Thank you for your interest in contributing to Code Security! We appreciate your efforts to enhance software security and collaborate with the security community. This guide outlines the steps to contribute effectively.
4+
5+
## Contribution Guidelines
6+
7+
Before you start contributing, please familiarize yourself with the following guidelines:
8+
9+
1. Fork the Code Security repository from [https://github.com/rohitcoder/code-security](https://github.com/rohitcoder/code-security) to your own GitHub account.
10+
2. Clone your forked repository to your local development environment:
11+
12+
```bash
13+
git clone https://github.com/<YOUR_USERNAME>/code-security.git
14+
```
15+
3. Create a new branch for your changes:
16+
17+
```bash
18+
git checkout -b feature/your-feature-name
19+
```
20+
21+
Replace ``your-feature-name`` with a descriptive name for your contribution.
22+
4. Make your desired changes or additions to the codebase.
23+
5. Commit your changes with a meaningful commit message:
24+
25+
```bash
26+
git commit -m "Add your commit message here"
27+
```
28+
6. Push your changes to your forked repository:
29+
30+
```bash
31+
git push origin feature/your-feature-name
32+
```
33+
7. Open a pull request (PR) against the main repository's main branch. Ensure that you provide a clear description of your changes and any relevant information about the PR.
34+
8. Your PR will be reviewed by the project maintainers. Please be patient and responsive to any feedback or requests for changes.
35+
9. Once your changes are approved, they will be merged into the main repository. Congratulations on your contribution!
36+
37+
38+
## Bug Reports and Feature Requests
39+
If you encounter any bugs or have suggestions for new features, please open an issue on the GitHub repository. Provide as much detail as possible, including steps to reproduce the issue or a clear description of the proposed feature.
40+
41+
### License
42+
By contributing to the Code Security Tool, you agree that your contributions will be licensed under the MIT License.
43+
44+
We appreciate your time and effort in contributing to the project. Your contributions help improve the tool and make it more valuable to the community. Thank you!

0 commit comments

Comments
 (0)