Step 3 - Run the OIDC Build

ARTIFACTORY: OIDC Setup Example

AuthorFullName__c
Patrick Russell
articleNumber
000006129
ft:sourceType
Salesforce
FirstPublishedDate
2024-06-23T07:41:09Z
lastModifiedDate
2024-06-23
VersionNumber
2
It's time to test the OIDC GitHub Actions build! Over in the GitHub project, navigate to the "Actions" tab. GitHub Actions trigger whenever a Commit or Pull Request is detected, but you can manually trigger the build by selecting the last workflow run and choosing "Re-run all jobs" up in the right-hand corner:

User-added image

Over in the Artifactory system, run a tail command on the artifactory-request.log to see the token being used by the build:
2024-06-19T22:12:18.408Z|3d1f47893b3cc611|127.0.0.1|token:oidc-admin|GET|/api/npm/npm/wrappy|304|-1|0|67|npm/7.19.0 node/v10.19.0 linux x64 workspaces/false ci/github-actions

2024-06-19T22:12:18.613Z|f3bd77e621af5248|127.0.0.1|token:oidc-admin|GET|/api/npm/npm/strip-final-newline|304|-1|0|66|npm/7.19.0 node/v10.19.0 linux x64 workspaces/false ci/github-actions

User-added image

Tip: If you're seeing a 401 error on the "npm install" stage, consider removing the --global=true tag from the npm-config stage. OIDC tokens are not used when this tag is set to true.

User-added image

If you run into trouble getting GitHub to connect to Artifactory, consider the troubleshooting advice in this separate article .