3636 - p/python (public library)
3737 - ./rules/my-rule.yaml (single YAML file)
3838 - ./my-rules/ (directory of N YAML files)
39-
39+
4040 By default the rules will be added on top of this workflow's default rules
4141 (see the input `use_default_config` and the environment variable
4242 `DEFAULT_CONFIG` for more information).
@@ -80,10 +80,10 @@ jobs:
8080 scan :
8181 if : (github.actor != 'dependabot[bot]')
8282 name : semgrep/ci
83- runs-on : ubuntu-22 .04
83+ runs-on : ubuntu-24 .04
8484 container :
8585 # Note: the non-root flavor doesn't work on GHA (e.g., 1.57.0-nonroot).
86- image : returntocorp/semgrep@sha256:396f4ad7a655289e764ab2f92733e6195c166ff2f042e0d40505a5850432b9ac # 1.63.0
86+ image : returntocorp/semgrep:1.153.1@sha256:50b839b576d76426efd3e5cffda2db0d8c403f53aa76e91d42ccf51485ac336c
8787
8888 steps :
8989 # Clone the invoker's repository.
@@ -119,7 +119,7 @@ jobs:
119119 EXCLUDE_RULES : ${{ inputs.exclude_rules }}
120120 run : |
121121 set -u -o pipefail
122-
122+
123123 cmd_args=(
124124 # Do not check for version update as we are inside a CI.
125125 "--disable-version-check"
@@ -131,32 +131,32 @@ jobs:
131131 # the users to be explicit.
132132 "--no-git-ignore"
133133 )
134-
134+
135135 # Add extra logging if the runner was run with debug logging.
136136 test -z "${RUNNER_DEBUG+x}" || cmd_args+=( "--verbose" )
137-
137+
138138 if [ "$USE_DEFAULT_CONFIG" == true ]; then
139139 CONFIG_PATHS="$DEFAULT_CONFIG $CONFIG_PATHS"
140140 fi
141-
141+
142142 if [ "$USE_DEFAULT_EXCLUDE_RULES" == true ]; then
143143 EXCLUDE_RULES="$DEFAULT_EXCLUDE_RULE_IDS $EXCLUDE_RULES"
144144 fi
145-
145+
146146 # Gather the config input whitespace-separate value
147147 # into a list of `--config=<value>` arguments.
148148 read -d '' -r -a configs < <(echo "$CONFIG_PATHS") || true
149149 for cfg in "${configs[@]}"; do
150150 cmd_args+=( "--config=$cfg" )
151151 done
152-
152+
153153 # Gather the excluded rules ID into a list
154154 # of `--exclude-rule=<value>` arguments.
155155 read -d '' -r -a exclude_rules < <(echo "$EXCLUDE_RULES") || true
156156 for excluded_rule_id in "${exclude_rules[@]}"; do
157157 cmd_args+=( "--exclude-rule=$excluded_rule_id" )
158158 done
159-
159+
160160 semgrep ci "${cmd_args[@]}"
161161
162162 - uses : actions/upload-artifact@26f96dfa697d77e81fd5907df203aa23a56210a8 # 4.3.0
@@ -176,7 +176,7 @@ jobs:
176176 needs :
177177 - scan
178178 name : SARIF to PR Annotations
179- runs-on : ubuntu-22 .04
179+ runs-on : ubuntu-24 .04
180180 container :
181181 # Note: distroless flavor doesn't work on GHA.
182182 image : ghcr.io/nyankiyoshi/less-advanced-security@sha256:689f73bed448ce40ca4ed01f6585f22665c0c302ed0e882d1fc78016c12f2880 # 0.5.0
0 commit comments