jenkinsci / jenkinsci/script-security-plugin

[JENKINS-65675] After cleaning approved script list, job throwing error UnapprovedUsageException but no pending sript approvals

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

Description

I was asked for first time I executed Jenkins scripted pipeline for in script approval which was done and pipelines were running fine.

The script approvals were later removed and now the pipelines are throwing error 

UnapprovedUsageException but when I go to Manage Jenkins --> In Script approavl process --> No Pending approvals to be approved

Now I cannot approve anything for this nor the error stops popping in pipeline. Please suggest as to how can I get the approvals pending so it can be reapprove by admin for solving this error.

Just to let you know in my pipeline, I am reading a file and iterating through the json items to perform build and deploy for each of the item

 

Jenkins version 2.267

Script security plugin version 1.76

---
Originally reported by monali1606, imported from: After cleaning approved script list, job throwing error UnapprovedUsageException but no pending sript approvals


  • status: Open
  • priority: Blocker
  • component(s): script-security-plugin
  • label(s): Jenkins, plugin, script-security
  • resolution: Unresolved
  • votes: 0
  • watchers: 1
  • imported: 2025-12-09

Raw content of original issue

I was asked for first time I executed Jenkins scripted pipeline for in script approval which was done and pipelines were running fine.

The script approvals were later removed and now the pipelines are throwing error 

UnapprovedUsageException but when I go to Manage Jenkins --> In Script approavl process --> No Pending approvals to be approved

Now I cannot approve anything for this nor the error stops popping in pipeline. Please suggest as to how can I get the approvals pending so it can be reapprove by admin for solving this error.

Just to let you know in my pipeline, I am reading a file and iterating through the json items to perform build and deploy for each of the item

 

Jenkins version 2.267

Script security plugin version 1.76

  • environment: Jenkins Prod

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.