Skip to content

Commit 94fe896

Browse files
authored
Merge pull request #34 from namecheap/ci/jenkins-security-scan
ci: add the Jenkins Security Scan
2 parents a9b976e + 609abfc commit 94fe896

1 file changed

Lines changed: 31 additions & 0 deletions

File tree

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# The Jenkins project's own static analysis for plugins: CodeQL run with the
2+
# jenkins-infra query pack rather than the generic Java one, so it looks for the
3+
# mistakes plugins actually make -- unsafe Stapler bindings, do* methods missing
4+
# a permission check or CSRF protection, XSS through Jelly.
5+
#
6+
# This plugin has exactly that surface: BuildAddUrl.BuildUrlAction issues a
7+
# redirect built from a user-supplied URL, DescriptorImpl exposes doCheck*
8+
# methods, and the dashboard interpolates job and environment names into its
9+
# views.
10+
#
11+
# Findings appear under Security > Code scanning; they do not fail the build.
12+
name: Jenkins Security Scan
13+
14+
on:
15+
push:
16+
branches: [master]
17+
pull_request:
18+
types: [opened, synchronize, reopened]
19+
workflow_dispatch:
20+
21+
permissions:
22+
security-events: write
23+
contents: read
24+
actions: read
25+
26+
jobs:
27+
security-scan:
28+
uses: jenkins-infra/jenkins-security-scan/.github/workflows/jenkins-security-scan.yaml@da7438f10fecc21e40174d420ef34daae0874122 # v2.4.0
29+
with:
30+
java-cache: maven
31+
java-version: 21

0 commit comments

Comments
 (0)