Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix test-on-ubuntu.yml and update zarn.yml #116

Merged
merged 9 commits into from
Dec 16, 2024
Merged
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
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 14 additions & 12 deletions .github/workflows/security-gate.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
name: Security Gate - LESIS

on:
push:
branches:
- main
pull_request:
branches:
- main
- develop

permissions:
security-events: read
contents: read

jobs:
build:
Expand All @@ -24,15 +26,15 @@ jobs:
- name: Pull Docker image from GitHub Container Registry
run: docker pull ghcr.io/instriq/security-gate/security-gate:latest

- name: Verify security alerts from dependabot
- name: Verify security alerts from GHAS
run: |
docker run ghcr.io/instriq/security-gate/security-gate:latest \
-t $GITHUB_TOKEN \
-r ${{ github.repository }} \
--critical $MAX_CRITICAL \
--high $MAX_HIGH \
--medium $MAX_MEDIUM \
--low $MAX_LOW \
-t "$GITHUB_TOKEN" \
-r "${{ github.repository }}" \
-c "$MAX_CRITICAL" \
-h "$MAX_HIGH" \
-m "$MAX_MEDIUM" \
-l "$MAX_LOW" \
--dependency-alerts \
--code-alerts \
--secret-alerts
--secret-alerts \
--code-alerts
3 changes: 2 additions & 1 deletion .github/workflows/test-on-ubuntu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ jobs:
- uses: actions/checkout@v4
- name: Install dependencies
run: |
sudo apt install -y perl cpanminus
sudo apt-get update
sudo apt-get install -y perl cpanminus build-essential libdatetime-perl libssl-dev libexpat1-dev libpcap-dev masscan
sudo cpanm --installdeps .
- name: Verify the basic usage
run: |
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/zarn.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,11 @@ name: ZARN SAST

on:
push:
branches: [ "main" ]
branches: [ "main", "develop" ]
pull_request:
branches: [ "main" ]
branches: [ "main", "develop" ]
schedule:
- cron: '28 23 * * 1'

jobs:
zarn:
Expand Down
5 changes: 4 additions & 1 deletion .perlcriticrc
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
severity = 3

[-TestingAndDebugging::RequireUseStrict]
[-TestingAndDebugging::RequireUseWarnings]
[-TestingAndDebugging::RequireUseWarnings]

[TestingAndDebugging::ProhibitNoWarnings]
allow = once
Loading