https://github.com/edersonbrilhante/vilicus-scan-examples
Examples of how to use Vvilicus in GitHub workflows and gitlabci
https://github.com/edersonbrilhante/vilicus-scan-examples
exemple vilicus
Last synced: 3 months ago
JSON representation
Examples of how to use Vvilicus in GitHub workflows and gitlabci
- Host: GitHub
- URL: https://github.com/edersonbrilhante/vilicus-scan-examples
- Owner: edersonbrilhante
- Created: 2021-03-05T16:15:32.000Z (about 5 years ago)
- Default Branch: main
- Last Pushed: 2021-04-09T17:14:42.000Z (about 5 years ago)
- Last Synced: 2025-09-10T09:41:45.978Z (9 months ago)
- Topics: exemple, vilicus
- Language: Dockerfile
- Homepage: https://vilicus.edersonbrilhante.com.br
- Size: 5.86 KB
- Stars: 3
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Vilicus Scan Examples
## Examples
### GitHub Workflow
```yaml
name: Vilicus Scan Demo
on: [push]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Maximize Build Space
uses: easimon/maximize-build-space@master
with:
root-reserve-mb: 512
swap-size-mb: 1024
remove-dotnet: 'true'
remove-android: 'true'
remove-haskell: 'true'
- name: Checkout branch
uses: actions/checkout@v2
- name: Build the Container image
run: docker build -t localhost:5000/local-image:${GITHUB_SHA} .
- name: Vilicus Scan
uses: edersonbrilhante/vilicus-github-action@main
with:
image: localhost:5000/local-image:${{ github.sha }}
- name: Upload results to github security
uses: github/codeql-action/upload-sarif@v1
with:
sarif_file: artifacts/results.sarif
```
### GitLab CI
```yaml
include:
- remote: https://raw.githubusercontent.com/edersonbrilhante/vilicus-gitlab/main/Vilicus.gitlab-ci.yml
remote_image:
extends: .vilicus
variables:
IMAGE: python
tags:
- crosscicd
local_image:
extends: .vilicus
variables:
IMAGE: localhost:5000/local-image:${CI_COMMIT_SHORT_SHA}
script:
- docker build -t localhost:5000/local-image:${CI_COMMIT_SHORT_SHA} .
- ./run-job.sh
tags:
- crosscicd
```