|
143 | 143 | jobs:
|
144 | 144 | deploy:
|
145 | 145 | runs-on: ubuntu-20.04
|
| 146 | + permissions: |
| 147 | + contents: write |
146 | 148 | concurrency:
|
147 | 149 | group: ${{ github.workflow }}-${{ github.ref }}
|
148 | 150 | steps:
|
|
477 | 479 | jobs:
|
478 | 480 | deploy:
|
479 | 481 | runs-on: ubuntu-20.04
|
| 482 | + permissions: |
| 483 | + contents: write |
480 | 484 | concurrency:
|
481 | 485 | group: ${{ github.workflow }}-${{ github.ref }}
|
482 | 486 | steps:
|
@@ -570,7 +574,14 @@ fatal: unable to access 'https://github.com/username/repository.git/': The reque
|
570 | 574 | Error: Action failed with "The process '/usr/bin/git' failed with exit code 128"
|
571 | 575 | ```
|
572 | 576 |
|
573 |
| -Navigate to your repository's settings / actions / general and in the "Workflow permissions" section, select "Read and write permissions": |
| 577 | +Please add the write permission to the `permissions.contents` in a workflow/job. |
| 578 | + |
| 579 | +```yaml |
| 580 | +permissions: |
| 581 | + contents: write |
| 582 | +``` |
| 583 | + |
| 584 | +Or, navigate to your repository's settings / actions / general and in the "Workflow permissions" section, select "Read and write permissions": |
574 | 585 |
|
575 | 586 | <img width="700" alt="Enabling Read and write permissions to the GITHUB_TOKEN on GitHub Actions" src="https://user-images.githubusercontent.com/30958501/168609359-242f59a9-34c6-4272-9793-d6b2cc823837.png">
|
576 | 587 |
|
|
622 | 633 | jobs:
|
623 | 634 | deploy:
|
624 | 635 | runs-on: ubuntu-20.04
|
| 636 | + permissions: |
| 637 | + contents: write |
625 | 638 | concurrency:
|
626 | 639 | group: ${{ github.workflow }}-${{ github.ref }}
|
627 | 640 | steps:
|
|
662 | 675 | jobs:
|
663 | 676 | deploy:
|
664 | 677 | runs-on: ubuntu-20.04
|
| 678 | + permissions: |
| 679 | + contents: write |
665 | 680 | concurrency:
|
666 | 681 | group: ${{ github.workflow }}-${{ github.ref }}
|
667 | 682 | steps:
|
|
710 | 725 | jobs:
|
711 | 726 | deploy:
|
712 | 727 | runs-on: ubuntu-20.04
|
| 728 | + permissions: |
| 729 | + contents: write |
713 | 730 | concurrency:
|
714 | 731 | group: ${{ github.workflow }}-${{ github.ref }}
|
715 | 732 | steps:
|
|
760 | 777 | jobs:
|
761 | 778 | deploy:
|
762 | 779 | runs-on: ubuntu-20.04
|
| 780 | + permissions: |
| 781 | + contents: write |
763 | 782 | concurrency:
|
764 | 783 | group: ${{ github.workflow }}-${{ github.ref }}
|
765 | 784 | steps:
|
|
815 | 834 | jobs:
|
816 | 835 | deploy:
|
817 | 836 | runs-on: ubuntu-20.04
|
| 837 | + permissions: |
| 838 | + contents: write |
818 | 839 | concurrency:
|
819 | 840 | group: ${{ github.workflow }}-${{ github.ref }}
|
820 | 841 | steps:
|
|
868 | 889 | jobs:
|
869 | 890 | deploy:
|
870 | 891 | runs-on: ubuntu-20.04
|
| 892 | + permissions: |
| 893 | + contents: write |
871 | 894 | concurrency:
|
872 | 895 | group: ${{ github.workflow }}-${{ github.ref }}
|
873 | 896 | defaults:
|
|
926 | 949 | jobs:
|
927 | 950 | deploy:
|
928 | 951 | runs-on: ubuntu-20.04
|
| 952 | + permissions: |
| 953 | + contents: write |
929 | 954 | concurrency:
|
930 | 955 | group: ${{ github.workflow }}-${{ github.ref }}
|
931 | 956 | steps:
|
|
986 | 1011 | jobs:
|
987 | 1012 | deploy:
|
988 | 1013 | runs-on: ubuntu-20.04
|
| 1014 | + permissions: |
| 1015 | + contents: write |
989 | 1016 | concurrency:
|
990 | 1017 | group: ${{ github.workflow }}-${{ github.ref }}
|
991 | 1018 | steps:
|
@@ -1025,6 +1052,8 @@ on:
|
1025 | 1052 | jobs:
|
1026 | 1053 | deploy:
|
1027 | 1054 | runs-on: ubuntu-20.04
|
| 1055 | + permissions: |
| 1056 | + contents: write |
1028 | 1057 | concurrency:
|
1029 | 1058 | group: ${{ github.workflow }}-${{ github.ref }}
|
1030 | 1059 | steps:
|
@@ -1069,6 +1098,8 @@ on:
|
1069 | 1098 | jobs:
|
1070 | 1099 | deploy:
|
1071 | 1100 | runs-on: ubuntu-20.04
|
| 1101 | + permissions: |
| 1102 | + contents: write |
1072 | 1103 | concurrency:
|
1073 | 1104 | group: ${{ github.workflow }}-${{ github.ref }}
|
1074 | 1105 | steps:
|
|
0 commit comments