Skip to content

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

Description

@jenkins-infra-bot

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions