Skip to content

Commit f93ac92

Browse files
Merge pull request sonic-net#90 from yutongzhang-microsoft/yutongzhang/update_permissions
Explicit permission requirement for gihub actions token in autosync workflow.
2 parents 8fc0a99 + 914ea34 commit f93ac92

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

.github/workflows/autosync_pub_msft.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ on:
44
# Set it manually trigger temporarily
55
workflow_dispatch:
66

7+
permissions:
8+
contents: write
9+
pull-requests: write
10+
711
jobs:
812
sync-and-push:
913
if: github.repository_owner == 'Azure'
@@ -77,9 +81,6 @@ jobs:
7781
description="<h1>Please merge $CommitID into sonic-mgmt.msft.Do not Cherry-pick!!!</h1>"
7882
description="code conflict: sonic-net/sonic-mgmt:$branch_head -> Azure/sonic-mgmt.msft:$branch_base<br>"
7983
description+=$(git log $prehead..HEAD --merge --pretty=format:'%h -%d %s (%cs) [%aN]')
80-
# assign="Gen-Hwa Chiang <[email protected]>"
81-
# update work-item
82-
# az boards work-item update --org https://dev.azure.com/mssonic/ --id $ADO_ID --discussion "$description" -f "Custom Field 1=type_A"
8384
fi
8485
fi
8586
GIT_EDITOR=true git merge --continue || true

0 commit comments

Comments
 (0)