Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/hahwul/zest-env
🐋 Zest CLI Environment
https://github.com/hahwul/zest-env
docker-image environment github-action script security zest zest-lang
Last synced: 5 days ago
JSON representation
🐋 Zest CLI Environment
- Host: GitHub
- URL: https://github.com/hahwul/zest-env
- Owner: hahwul
- Created: 2022-05-28T13:56:48.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-05-05T15:01:08.000Z (6 months ago)
- Last Synced: 2024-10-25T01:32:11.706Z (13 days ago)
- Topics: docker-image, environment, github-action, script, security, zest, zest-lang
- Language: Shell
- Homepage:
- Size: 32.2 KB
- Stars: 8
- Watchers: 3
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# zest-env
[![CI](https://github.com/hahwul/zest-env/actions/workflows/docker.yml/badge.svg)](https://github.com/hahwul/zest-env/actions/workflows/docker.yml)
[![CD](https://github.com/hahwul/zest-env/actions/workflows/docker-publish.yml/badge.svg)](https://github.com/hahwul/zest-env/actions/workflows/docker-publish.yml)## 🤔 What is Zest
> Zest is an experimental specialized scripting language (also known as a domain-specific language) originally developed by the Mozilla security team and is intended to be used in web oriented security tools.
*from https://www.zaproxy.org/docs/desktop/addons/zest/*It is included by default with ZAP. However, it can also be used as the CLI. this repository for easy setup the CLI environment.
## 📚 Usage
### Github action
```yaml
- name: Zest CLI
uses: hahwul/[email protected]
with:
script:
flags: "-token 'id=secret' -token 'password=secret'"
```*Flags*
- `-summary`
- `-list`
- `-debug`
- `-timeout`: timeout for requests in second
- `-prefix`: http://prefix
- `-token`: name=value
- `-http-auth-site`: site
- `-http-auth-realm`: realm
- `-http-auth-user`: user
- `-http-auth-password`: password
- `-insecure`: skip the SSL certificate check### Dockerhub
#### In CLI
```
docker pull hahwul/zest-env
docker pull hahwul/zest-env:latest
docker pull hahwul/zest-env:v1.1.4
```
![](https://user-images.githubusercontent.com/13212227/170864242-bebfa421-21cc-4f27-8077-230fdfe47202.png)#### In Dockerfile
```dockerfile
FROM hahwul/zest-env:v1.1.4
# Add your Job
RUN /usr/bin/zest -script
```### Github Container Registry (GHCR)
#### In CLI
```
docker pull ghcr.io/hahwul/zest-env:v1.1.4
```
![](https://user-images.githubusercontent.com/13212227/170864338-f557b07c-9dc0-4500-84b4-13a86c5411da.png)#### In Dockerfile
```dockerfile
FROM ghcr.io/hahwul/zest-env:v1.1.4
# Add your Job
RUN /usr/bin/zest -script
```### Local build
```
git clone https://github.com/hahwul/zest-env
cd zest-env
docker build .
```## Resources
- https://www.zaproxy.org/docs/desktop/addons/zest/
- https://github.com/zaproxy/zest/
- https://twitter.com/hahwul/status/1530234639469932544
- https://www.hahwul.com/2022/05/19/zest-and-headless-authentication-script/
- https://www.hahwul.com/2022/05/28/zest-in-cli/