File tree Expand file tree Collapse file tree 3 files changed +25
-0
lines changed Expand file tree Collapse file tree 3 files changed +25
-0
lines changed Original file line number Diff line number Diff line change @@ -253,6 +253,23 @@ Example
253
253
PYSEC-AAAA-BBBBB
254
254
` ` `
255
255
256
+ # ## `disable-pip`
257
+
258
+ **Default**: `false`
259
+
260
+ The `disable-pip` setting disable the use of `pip` for dependency resolution. This can only be used with
261
+ hashed requirements files or if the `no-deps` setting has been provided.
262
+
263
+ Example
264
+
265
+ ` ` ` yaml
266
+
267
+ with:
268
+ inputs: requirements.lock
269
+ disable-pip: true
270
+ no-deps: true
271
+ ` ` `
272
+
256
273
# ## Internal options
257
274
<details>
258
275
<summary>⚠️ Internal options ⚠️</summary>
Original file line number Diff line number Diff line change @@ -82,6 +82,9 @@ def _fatal_help(msg):
82
82
if os .getenv ("GHA_PIP_AUDIT_LOCAL" , "false" ) != "false" :
83
83
pip_audit_args .append ("--local" )
84
84
85
+ if os .getenv ("GHA_PIP_DISABLE_PIP" , "false" ) != "false" :
86
+ pip_audit_args .append ("--disable-pip" )
87
+
85
88
index_url = os .getenv ("GHA_PIP_AUDIT_INDEX_URL" )
86
89
if index_url != "" :
87
90
pip_audit_args .extend (["--index-url" , index_url ])
Original file line number Diff line number Diff line change @@ -42,6 +42,10 @@ inputs:
42
42
description : " vulnerabilities to explicitly exclude, if present (whitespace separated)"
43
43
required : false
44
44
default : " "
45
+ disable-pip :
46
+ description : " disable pip"
47
+ required : false
48
+ default : false
45
49
internal-be-careful-allow-failure :
46
50
description : " don't fail the job if the audit fails (default false)"
47
51
required : false
82
86
GHA_PIP_AUDIT_INDEX_URL : " ${{ inputs.index-url }}"
83
87
GHA_PIP_AUDIT_EXTRA_INDEX_URLS : " ${{ inputs.extra-index-urls }}"
84
88
GHA_PIP_AUDIT_IGNORE_VULNS : " ${{ inputs.ignore-vulns }}"
89
+ GHA_PIP_DISABLE_PIP : " ${{ inputs.disable-pip }}"
85
90
GHA_PIP_AUDIT_INTERNAL_BE_CAREFUL_ALLOW_FAILURE : " ${{ inputs.internal-be-careful-allow-failure }}"
86
91
GHA_PIP_AUDIT_INTERNAL_BE_CAREFUL_EXTRA_FLAGS : " ${{ inputs.internal-be-careful-extra-flags }}"
87
92
shell : bash
You can’t perform that action at this time.
0 commit comments