Skip to content

Commit c15af06

Browse files
committed
Move permissions into jobs to see if it resolves failing actiosn
1 parent cd094c9 commit c15af06

File tree

2 files changed

+4
-10
lines changed

2 files changed

+4
-10
lines changed

.github/workflows/refresh_data.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ jobs:
1414

1515
permissions:
1616
contents: write
17+
id-token: write
1718

1819
steps:
1920
- uses: actions/checkout@v2
@@ -53,7 +54,7 @@ jobs:
5354
if: steps.lint-and-test.outcome == 'success'
5455
id: push-to-branch
5556
run: |
56-
echo "Data changes have occured, committing to main"
57+
echo "Data changes have occurred, committing to main"
5758
git config --global user.name 'github-actions[bot]'
5859
git config --global user.email 'github-actions[bot]@users.noreply.github.com'
5960
git add .
@@ -80,6 +81,3 @@ jobs:
8081
npm publish --provenance --access public
8182
env:
8283
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
83-
84-
permissions:
85-
id-token: write

.github/workflows/refresh_static.yml

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,6 @@ on:
88
env:
99
package_dir: "/"
1010

11-
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
12-
permissions:
13-
contents: read
14-
pages: write
15-
id-token: write
16-
1711
concurrency:
1812
group: "pages"
1913
cancel-in-progress: false
@@ -24,6 +18,8 @@ jobs:
2418

2519
permissions:
2620
contents: write
21+
pages: write
22+
id-token: write
2723

2824
steps:
2925
- uses: actions/checkout@v2

0 commit comments

Comments
 (0)