jenkinsci / jenkinsci/script-security-plugin

[JENKINS-72239] Scripts are not getting approved , when I post the updated config.xml with api using Admin credential and token

Open
#888 5 comments 0 reactions 0 assignees View on GitHub
component:script-security-plugin imported-jira-issue priority:major resolution:unresolved
Dominant language
Java
Stars
76
Forks
181
Avg merge
14h 55m
Merged PRs (30d)
3

Description

with the script security plugin recent version - 1275.v23895f409fb_d , when we post confix.xml using REST API with Admin credential and token , the updated config.xml is not being approved automatically. 

We have to go into the scriptApproval page and approve the scripts.

Earlier the approval used to happen automatically using the Admin gui.

It would be very helpful if there is a way to approve scripts without having to manually approve them using the GUI.

Actually, we are working on a feature to add / remove a parameter from pipelines based on flags provided by user. so we need a way to automatically approve the config.xml of a pipeline without requiring manaul process with GUI.

Jenkins version:- 2.426

Operating system :- Oracle Linux Server 8.8

---
Originally reported by harsha_vardhan_987, imported from: Scripts are not getting approved , when I post the updated config.xml with api using Admin credential and token


  • status: Open
  • priority: Major
  • component(s): script-security-plugin
  • resolution: Unresolved
  • votes: 0
  • watchers: 4
  • imported: 2025-12-09

Raw content of original issue

with the script security plugin recent version - 1275.v23895f409fb_d , when we post confix.xml using REST API with Admin credential and token , the updated config.xml is not being approved automatically. 

We have to go into the scriptApproval page and approve the scripts.

Earlier the approval used to happen automatically using the Admin gui.

It would be very helpful if there is a way to approve scripts without having to manually approve them using the GUI.

Actually, we are working on a feature to add / remove a parameter from pipelines based on flags provided by user. so we need a way to automatically approve the config.xml of a pipeline without requiring manaul process with GUI.

Jenkins version:- 2.426
Operating system :- Oracle Linux Server 8.8

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.