Skip to content

Commit

Permalink
Adding logs
Browse files Browse the repository at this point in the history
  • Loading branch information
darpanLalwani committed Sep 24, 2024
1 parent c22f40b commit dad36c3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion setup-env/dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -9424,10 +9424,12 @@ class ActionInput {

async identifyRunFromBStack() {
try {
const githubToken = process.env.GITHUB_TOKEN;
const runDetailsUrl = `https://api.github.com/repos/${this.repository}/actions/runs/${this.runId}`;
core.info(`Github token is - ${githubToken} and url is - ${runDetailsUrl}`);
const runDetailsResponse = await axios.get(runDetailsUrl, {
headers: {
Authorization: `token ${process.env.GITHUB_TOKEN}`,
Authorization: `token ${githubToken}`,
Accept: 'application/vnd.github.v3+json',
},
});
Expand Down
4 changes: 3 additions & 1 deletion setup-env/src/actionInput/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -95,10 +95,12 @@ class ActionInput {

async identifyRunFromBStack() {
try {
const githubToken = process.env.GITHUB_TOKEN;
const runDetailsUrl = `https://api.github.com/repos/${this.repository}/actions/runs/${this.runId}`;
core.info(`Github token is - ${githubToken} and url is - ${runDetailsUrl}`);
const runDetailsResponse = await axios.get(runDetailsUrl, {
headers: {
Authorization: `token ${process.env.GITHUB_TOKEN}`,
Authorization: `token ${githubToken}`,
Accept: 'application/vnd.github.v3+json',
},
});
Expand Down

0 comments on commit dad36c3

Please sign in to comment.