Skip to content

Commit befa36d

Browse files
authored
senzing-factory/build-resources#124 reuse add to project and update permissions (#91)
1 parent c11d8f0 commit befa36d

File tree

3 files changed

+16
-11
lines changed

3 files changed

+16
-11
lines changed

.github/workflows/add-labels-standardized.yaml

+3-2
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,11 @@ on:
66
- opened
77
- reopened
88

9+
permissions:
10+
issues: write
11+
912
jobs:
1013
add-issue-labels:
11-
permissions:
12-
issues: write
1314
secrets:
1415
ORG_MEMBERSHIP_TOKEN: ${{ secrets.ORG_MEMBERSHIP_TOKEN }}
1516
SENZING_MEMBERS: ${{ secrets.SENZING_MEMBERS }}

.github/workflows/add-to-project-app-server.yaml

+10-9
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,15 @@ on:
66
- opened
77
- reopened
88

9+
permissions:
10+
repository-projects: write
11+
912
jobs:
1013
add-to-project:
11-
name: add issue to project
12-
runs-on: ubuntu-latest
13-
14-
steps:
15-
- name: assign issue to project
16-
uses: actions/[email protected]
17-
with:
18-
github-token: ${{ secrets.SENZING_GITHUB_ACCESS_TOKEN }}
19-
project-url: https://github.com/orgs/${{ vars.SENZING_GITHUB_ACCOUNT_NAME }}/projects/${{ vars.SENZING_PROJECT_APP_SERVER }}
14+
secrets:
15+
SENZING_GITHUB_PROJECT_RW_TOKEN: ${{ secrets.SENZING_GITHUB_PROJECT_RW_TOKEN }}
16+
uses: senzing-factory/build-resources/.github/workflows/add-to-project.yaml@v1
17+
with:
18+
classic: false
19+
project-number: ${{ vars.SENZING_PROJECT_APP_SERVER}}
20+
org: ${{ vars.SENZING_GITHUB_ACCOUNT_NAME }}

.github/workflows/move-pr-to-done-dependabot.yaml

+3
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ on:
55
branches: [main]
66
types: [closed]
77

8+
permissions:
9+
repository-projects: write
10+
811
jobs:
912
move-pr-to-done-dependabot:
1013
secrets:

0 commit comments

Comments
 (0)