@@ -32,10 +32,10 @@ jobs:
3232 outputs :
3333 VERSION : ${{ steps.version.outputs.VERSION }}
3434 steps :
35- - uses : actions/checkout@v4
35+ - uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
3636 with :
3737 ref : ${{ github.event.workflow_run.head_branch }}
38- - uses : actions/setup-java@v4
38+ - uses : actions/setup-java@c5195efecf7bdfc987ee8bae7a71cb8b11521c00 # v4.7.1
3939 with :
4040 distribution : ' temurin'
4141 java-version : ' 11'
@@ -88,10 +88,10 @@ jobs:
8888 run :
8989 shell : bash
9090 steps :
91- - uses : actions/checkout@v4
91+ - uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
9292 with :
9393 ref : ${{ github.event.workflow_run.head_branch }}
94- - uses : actions/setup-java@v4
94+ - uses : actions/setup-java@c5195efecf7bdfc987ee8bae7a71cb8b11521c00 # v4.7.1
9595 with :
9696 distribution : ' temurin'
9797 java-version : ' 11'
@@ -118,10 +118,18 @@ jobs:
118118 END_LINE=$((END_LINE - 1))
119119 RELEASE_BODY="$(head -$END_LINE CHANGELOG.md | tail -$((END_LINE - BEGIN_LINE)))"
120120 echo "$RELEASE_BODY" > release_notes.md
121+ - uses : actions/create-github-app-token@df432ceedc7162793a195dd1713ff69aefc7379e # v2.0.6
122+ id : pmd-actions-helper-app-token
123+ with :
124+ app-id : ${{ secrets.PMD_ACTIONS_HELPER_ID }}
125+ private-key : ${{ secrets.PMD_ACTIONS_HELPER_PRIVATE_KEY }}
126+ owner : pmd
127+ repositories : pmd
128+ permission-contents : write # create a release
121129 - name : Create Release
122130 env :
123131 # Token required for GH CLI:
124- GH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
132+ GH_TOKEN : ${{ steps.pmd-actions-helper-app-token.outputs.token }}
125133 TAG_NAME : ${{ github.event.workflow_run.head_branch }}
126134 VERSION : ${{ needs.check-version.outputs.VERSION }}
127135 run : |
0 commit comments