Skip to content

Commit d3fe921

Browse files
committed
trying to add auth header to request
1 parent 2f8ed0a commit d3fe921

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

.github/workflows/update-submodule-template.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727
const response = await github.rest.repos.getContent({
2828
owner: 'hubspotdev',
2929
repo: 'CODE-Hub',
30-
path: '.github/pull_request_template.md',
30+
path: 'PR-Template.md',
3131
ref: 'main'
3232
});
3333
@@ -46,8 +46,11 @@ jobs:
4646
const response = await github.rest.repos.getContent({
4747
owner: 'hubspotdev',
4848
repo: 'CODE-Hub',
49-
path: 'Bug-Issue-Template.md',
50-
ref: 'main'
49+
path: 'PR-Template.md',
50+
ref: 'main',
51+
headers: {
52+
Authorization: `token ${{ secrets.GITHUB_TOKEN }}`
53+
}
5154
});
5255
5356
const content = Buffer.from(response.data.content, 'base64').toString();

0 commit comments

Comments
 (0)