Skip to content

Update security workflows #3373

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

Merged
merged 2 commits into from
May 16, 2025
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
33 changes: 4 additions & 29 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,37 +20,12 @@ permissions:
contents: read

jobs:
analyze:
codeql:
permissions:
packages: read
actions: read # for github/codeql-action/init to get workflow details
contents: read # for actions/checkout to fetch code
security-events: write # for github/codeql-action/autobuild to send a status report
name: Analyze (${{ matrix.language }})
runs-on: ubuntu-24.04

strategy:
fail-fast: false
matrix:
include:
- language: go
build-mode: autobuild
- language: javascript-typescript
build-mode: none

steps:
- name: Checkout repository
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@60168efe1c415ce0f5521ea06d5c2062adbeed1b # v3.28.17
with:
languages: ${{ matrix.language }}
build-mode: ${{ matrix.build-mode }}
queries: security-and-quality

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@60168efe1c415ce0f5521ea06d5c2062adbeed1b # v3.28.17
with:
category: "/language:${{matrix.language}}"
uses: nginxinc/compliance-rules/.github/workflows/codeql.yml@v0.1
with:
requested_languages: go,javascript-typescript
34 changes: 16 additions & 18 deletions .github/workflows/mend.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,23 @@ on:
push:
branches:
- main
- release-*
tags:
- "v[0-9]+.[0-9]+.[0-9]+*"
paths-ignore:
- design/**
- deploy**
- docs/**
- examples/**
pull_request:
branches:
- main
- release-*
paths-ignore:
- design/**
- deploy**
- docs/**
- examples/**

concurrency:
group: ${{ github.ref_name }}-mend
Expand All @@ -20,22 +30,10 @@ permissions:
contents: read

jobs:
scan:
name: Mend
runs-on: ubuntu-24.04
mend:
if: ${{ github.event.repository.fork == false }}
steps:
- name: Checkout Repository
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2

- name: Download agent
run: curl -LJO https://github.com/whitesource/unified-agent-distribution/releases/latest/download/wss-unified-agent.jar

- name: Verify JAR
run: jarsigner -verify wss-unified-agent.jar

- name: Scan and upload
env:
PRODUCT_NAME: nginx-gateway-fabric_${{ github.ref_name }}
PROJECT_NAME: nginx-gateway-fabric
run: java -jar wss-unified-agent.jar -noConfig true -wss.url ${{ secrets.WSS_URL }} -apiKey ${{ secrets.WSS_NGINX_TOKEN }} -product $PRODUCT_NAME -project $PROJECT_NAME -d .
uses: nginxinc/compliance-rules/.github/workflows/mend.yml@v0.1
secrets: inherit
with:
product_name: nginx-gateway-fabric_${{ github.ref_name }}
project_name: nginx-gateway-fabric
Loading