Skip to content

Commit 82d2663

Browse files
authored
Merge pull request #80 from Aditya30ag/fix/use-github-token-in-workflows
2 parents f3a40a4 + ee6c544 commit 82d2663

File tree

2 files changed

+10
-3
lines changed

2 files changed

+10
-3
lines changed

.github/workflows/issue_assignment.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
name: Issue assignment
22

3+
permissions:
4+
issues: write
5+
36
on:
47
issues:
58
types: [opened]
@@ -14,4 +17,4 @@ jobs:
1417
uses: pozil/auto-assign-issue@v2
1518
with:
1619
teams: infrastructure
17-
repo-token: ${{ secrets.infra_automation }}
20+
repo-token: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/test_and_deploy.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,10 @@ concurrency:
1212
group: ${{ github.workflow }}-${{ github.ref }}
1313
cancel-in-progress: true
1414

15+
permissions:
16+
pages: write
17+
contents: read
18+
1519
jobs:
1620
check_style:
1721
runs-on: ubuntu-latest
@@ -49,7 +53,7 @@ jobs:
4953
with:
5054
name: files
5155
path: |
52-
/home/runner/work/infrastructure/infrastructure/docs/_build/html/*
56+
docs/_build/html
5357
5458
deploy:
5559
needs: [check_style, build_docs]
@@ -75,6 +79,6 @@ jobs:
7579
- name: Deploy to GitHub Pages
7680
uses: peaceiris/actions-gh-pages@v4
7781
with:
78-
github_token: ${{ secrets.infra_automation }}
82+
github_token: ${{ secrets.GITHUB_TOKEN }}
7983
publish_dir: "/home/runner/files"
8084
force_orphan: true

0 commit comments

Comments
 (0)