Wolfram Language Paclet Repository

Community-contributed installable additions to the Wolfram Language

Primary Navigation

    • Cloud & Deployment
    • Core Language & Structure
    • Data Manipulation & Analysis
    • Engineering Data & Computation
    • External Interfaces & Connections
    • Financial Data & Computation
    • Geographic Data & Computation
    • Geometry
    • Graphs & Networks
    • Higher Mathematical Computation
    • Images
    • Knowledge Representation & Natural Language
    • Machine Learning
    • Notebook Documents & Presentation
    • Scientific and Medical Data & Computation
    • Social, Cultural & Linguistic Data
    • Strings & Text
    • Symbolic & Numeric Computation
    • System Operation & Setup
    • Time-Related Computation
    • User Interface Construction
    • Visualization & Graphics
    • Random Paclet
    • Alphabetical List
  • Using Paclets
    • Get Started
    • Download Definition Notebook
  • Learn More about Wolfram Language

PacletCICD

Tutorials

  • GitHub Actions Quick Start

Guides

  • Continuous Integration and Deployment
  • Custom CI/CD Workflows
  • Workflows

Tech Notes

  • License Entitlements and Repository Secrets

Symbols

  • BuildPaclet
  • CheckPaclet
  • CreatePublisherToken
  • ExampleDirectory
  • GitHubSecret
  • PublisherTokenObject
  • SubmitPaclet
  • WorkflowEvaluate
  • WorkflowExport
  • WorkflowJob
  • WorkflowJobQ
  • Workflow
  • WorkflowQ
  • WorkflowStep
  • WorkflowStepQ
  • WorkflowValue

Other

  • ResourcePublisherToken
  • WolframScriptEntitlementID
RESOURCE_PUBLISHER_TOKEN (Environment Variable)
NAME
RESOURCE_PUBLISHER_TOKEN
— a string corresponding to a
PublisherTokenObject
that can be used to authenticate some resource system requests
EXAMPLES
Getting a Valid Value
Load the PacletCICD package:
In[8]:=
Needs["Wolfram`PacletCICD`"];
Create a token using
CreatePublisherToken
:
In[7]:=
token=
CreatePublisherToken
["Example"]
Out[7]=
PublisherTokenObject
Token:
bajueu8Fg7OpwRJP••••••
Name: Example

Click to copy the token string from the output above, or extract it from the
PublisherTokenObject
:
In[8]:=
string=token["TokenString"]
Out[8]=
g2fpEpHBXz5jk8mizwYQ1T-bVxyUwPclnfWuHRTqrwkVb-bajueu8Fg7OpwRJPXPQ6mF-1
Copy it to the clipboard for the remaining examples:
In[13]:=
CopyToClipboard[string]
Using in a GitHub Workflow
Visit the following URL (replacing {user} and {repo} to match your repository) to define a repository secret:
https://github.com/{user}/{repo}/settings/secrets/actions
Click the "New repository secret" button at the top-right:
Use "RESOURCE_PUBLISHER_TOKEN" as the name, and paste in the token string as the value, then click the "Add secret" button:
By default, workflows will automatically set the RESOURCE_PUBLISHER_TOKEN environment variable using the GitHub secret of the same name:
In[3]:=
workflow=
Workflow
["Submit"]
Out[3]=
Workflow
Name: Submit
Jobs: 1

In[4]:=
workflow["Data"]["jobs","Submit","env"]
Out[4]=
WOLFRAM_SYSTEM_IDLinux-x86-64,WOLFRAMSCRIPT_ENTITLEMENTID${{ secrets.WOLFRAMSCRIPT_ENTITLEMENTID }},RESOURCE_PUBLISHER_TOKEN${{ secrets.RESOURCE_PUBLISHER_TOKEN }}
​
Obtain the value from a different GitHub secret name using
GitHubSecret
:
In[1]:=
workflow=
Workflow
"Submit","PublisherToken"
GitHubSecret
["MY_TOKEN"]
Out[1]=
Workflow
Name: Submit
Jobs: 1

In[2]:=
workflow["Data"]["jobs","Submit","env"]
Out[2]=
WOLFRAM_SYSTEM_IDLinux-x86-64,WOLFRAMSCRIPT_ENTITLEMENTID${{ secrets.WOLFRAMSCRIPT_ENTITLEMENTID }},RESOURCE_PUBLISHER_TOKEN${{ secrets.MY_TOKEN }}
​
Publisher tokens cannot be used directly in the workflow, since the resulting workflow file will be publicly readable:
In[1]:=
Workflow
["Submit","PublisherToken""g2fpEpHBXz5jk8mizwYQ1T-bVxyUwPclnfWuHRTqrwkVb-bajueu8Fg7OpwRJPXPQ6mF-1"]
Workflow
::TokenSecret
:Publisher tokens should not be specified directly, and should instead be given as a GitHubSecret.
​
Out[1]=
Failure

Message:
Publisher tokens should not be specified directly, and should instead be given as a GitHubSecret.
Tag:
Workflow::TokenSecret

Wolfram Language
Set the RESOURCE_PUBLISHER_TOKEN environment variable using
SetEnvironment
:
In[9]:=
SetEnvironment["RESOURCE_PUBLISHER_TOKEN""g2fpEpHBXz5jk8mizwYQ1T-bVxyUwPclnfWuHRTqrwkVb-bajueu8Fg7OpwRJPXPQ6mF-1"]
When ResourceSystemClient` loads, it will automatically use the environment variable:
In[10]:=
<<ResourceSystemClient`
In[14]:=
ResourceSystemClient`$PublisherToken
Out[14]=
ByteArray
70 bytes

Verify the
ByteArray
contents:
In[15]:=
ByteArrayToString[%]===Environment["RESOURCE_PUBLISHER_TOKEN"]
Out[15]=
True
Code from Command Line
Set the RESOURCE_PUBLISHER_TOKEN environment variable from the command line (replace value with your actual token string):
Linux/MacOSX
$ export RESOURCE_PUBLISHER_TOKEN=g2fpEpHBXz5jk8mizwYQ1T-bVxyUwPclnfWuHRTqrwkVb-bajueu8Fg7OpwRJPXPQ6mF-1
Windows
$ set RESOURCE_PUBLISHER_TOKEN=g2fpEpHBXz5jk8mizwYQ1T-bVxyUwPclnfWuHRTqrwkVb-bajueu8Fg7OpwRJPXPQ6mF-1
Test the value:
Linux/MacOSX
$ wolframscript -code 'Needs["ResourceSystemClient`"];ByteArrayToString[ResourceSystemClient`$PublisherToken]'
g2fpEpHBXz5jk8mizwYQ1T-bVxyUwPclnfWuHRTqrwkVb-bajueu8Fg7OpwRJPXPQ6mF-1
Windows
$ wolframscript -code "Needs[\"ResourceSystemClient`\"];ByteArrayToString[ResourceSystemClient`$PublisherToken]"
g2fpEpHBXz5jk8mizwYQ1T-bVxyUwPclnfWuHRTqrwkVb-bajueu8Fg7OpwRJPXPQ6mF-1
▪
Wolfram Language Scripts
CreatePublisherToken
 ▪
PublisherTokenObject
 ▪
GitHubSecret
 ▪
Workflow
 ▪
WorkflowJob
 ▪
WorkflowStep
 ▪
SetEnvironment
 ▪
Environment
▪
Standalone Wolfram System Kernels
""

© 2025 Wolfram. All rights reserved.

  • Legal & Privacy Policy
  • Contact Us
  • WolframAlpha.com
  • WolframCloud.com