Prerequisites
XEIZE Token
Add XEIZE_TOKEN as an Actions secret. To obtain one, contact your representative or support@xeize.dev.
GitHub Actions permissions
To post findings on a pull request (PR), grant the workflow job these permissions.
- checks: write
- contents: read
- pull-requests: write
Set XEIZE_GITHUB_API_TOKEN to ${{ secrets.GITHUB_TOKEN }}. To block merges when the job fails, make the XEIZE check required in the repository’s branch protection rule.
Scan result language
Add LANG to the job's env to choose the language of SAST, Secret, and IaC findings and comments on the pull request.
env:
LANG: EN
Supported values are KO (Korean), EN (English), and JP (Japanese). Korean is the default when LANG is unset.
Examples
SAST
name: XEIZE SAST Workflow
on:
pull_request:
jobs:
sast:
name: xez-sast
runs-on: ubuntu-latest
permissions:
checks: write
contents: read
pull-requests: write
env:
XEIZE_GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }}
XEIZE_TOKEN: ${{ secrets.XEIZE_TOKEN }}
LANG: EN
steps:
- name: Checkout code
uses: actions/checkout@v7
- name: Run XEZ SAST
run: |
curl -L -o xez_ci "https://download.xeize.dev/ci/ci_linux_x64" -H "X-XEZ-TOKEN: $XEIZE_TOKEN" && chmod +x xez_ci
./xez_ci
Secret
name: XEIZE SECRET Workflow
on:
pull_request:
jobs:
secret:
name: xez-secret
runs-on: ubuntu-latest
permissions:
checks: write
contents: read
pull-requests: write
env:
XEIZE_GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }}
XEIZE_TOKEN: ${{ secrets.XEIZE_TOKEN }}
MODE: secret
LANG: EN
steps:
- name: Checkout code
uses: actions/checkout@v7
- name: Run XEZ Secret
run: |
curl -L -o xez_ci "https://download.xeize.dev/ci/ci_linux_x64" -H "X-XEZ-TOKEN: $XEIZE_TOKEN" && chmod +x xez_ci
./xez_ci
IaC
name: XEIZE IaC Workflow
on:
pull_request:
jobs:
iac:
name: xez-iac
runs-on: ubuntu-latest
permissions:
checks: write
contents: read
pull-requests: write
env:
XEIZE_GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }}
XEIZE_TOKEN: ${{ secrets.XEIZE_TOKEN }}
MODE: iac
LANG: EN
steps:
- name: Checkout code
uses: actions/checkout@v7
- name: Run XEZ IaC
run: |
curl -L -o xez_ci "https://download.xeize.dev/ci/ci_linux_x64" -H "X-XEZ-TOKEN: $XEIZE_TOKEN" && chmod +x xez_ci
./xez_ci
Blocking merges with LEVEL
name: XEIZE Workflow
on:
pull_request:
jobs:
sast:
name: xez-sast
runs-on: ubuntu-latest
permissions:
checks: write
contents: read
pull-requests: write
env:
XEIZE_GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }}
XEIZE_TOKEN: ${{ secrets.XEIZE_TOKEN }}
LEVEL: high
steps:
- name: Checkout code
uses: actions/checkout@v7
- name: Run XEZ SAST
run: |
curl -L -o xez_ci "https://download.xeize.dev/ci/ci_linux_x64" -H "X-XEZ-TOKEN: $XEIZE_TOKEN" && chmod +x xez_ci
./xez_ci
Filtering findings with AUDIT LEVEL
name: XEIZE Workflow
on:
pull_request:
jobs:
iac:
name: xez-iac
runs-on: ubuntu-latest
permissions:
checks: write
contents: read
pull-requests: write
env:
XEIZE_GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }}
XEIZE_TOKEN: ${{ secrets.XEIZE_TOKEN }}
MODE: iac
AUDIT_LEVEL: low
steps:
- name: Checkout code
uses: actions/checkout@v7
- name: Run XEZ IaC
run: |
curl -L -o xez_ci "https://download.xeize.dev/ci/ci_linux_x64" -H "X-XEZ-TOKEN: $XEIZE_TOKEN" && chmod +x xez_ci
./xez_ci
Push workflow without a PR
This runs SAST, Secret, and IaC with MODE=all when code is pushed to develop, then builds and deploys after a successful scan. Add XEIZE_TOKEN as an Actions secret.
name: XEIZE push security
on:
push:
branches: [develop]
permissions:
contents: read
jobs:
security:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
with:
fetch-depth: 0
- name: Scan pushed changes
env:
XEIZE_TOKEN: ${{ secrets.XEIZE_TOKEN }}
MODE: all
LEVEL: medium
run: |
curl -fsSL -H "X-XEZ-TOKEN: $XEIZE_TOKEN" https://download.xeize.dev/ci/ci_linux_x64 -o /tmp/xez_ci
chmod +x /tmp/xez_ci
/tmp/xez_ci
build:
needs: [security]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
- run: ./ci/build.sh
deploy:
needs: [build]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
- run: ./ci/deploy.sh
Replace the build and deployment commands for your project while preserving the security → build → deploy dependencies. See common settings for scan scope and error handling.
Full scans and comparison bases
To scan all code before deployment, including unchanged code, add SCAN_SCOPE: full to the scan step's existing environment variables. The security step fails on findings at or above LEVEL even when main and develop point to the same commit.
env:
GIT_PLATFORM: github
MODE: all
SCAN_SCOPE: full
LEVEL: medium
XEIZE_TOKEN: ${{ secrets.XEIZE_TOKEN }}
To scan only changes, use one of the following instead of SCAN_SCOPE: full. For the commit option, replace the placeholder with the full approved commit SHA.
# Scan changes since the common ancestor with the selected branch
BASE_BRANCH: release
# Compare the previously approved commit directly with the current checkout
BASE_COMMIT: "<full approved commit SHA>"
With an explicit scope, results and blocking decisions appear in CI logs for push, manual, scheduled, tag, and PR runs. A PR comment token is not required, and review comments are neither created nor updated. Do not allow failures through continue-on-error; preserve the existing security → build → deploy dependencies.
See scan scope settings for Secret's current-commit coverage, option precedence, and the operational-error policy.