|
32 | 32 | required: false |
33 | 33 | type: string |
34 | 34 |
|
| 35 | +permissions: |
| 36 | + contents: read |
| 37 | + |
35 | 38 | jobs: |
36 | 39 | release: |
| 40 | + permissions: |
| 41 | + id-token: write |
| 42 | + contents: write |
37 | 43 | runs-on: cx-public-ubuntu-x64 |
38 | 44 | outputs: |
39 | 45 | CLI_VERSION: ${{ steps.extract_cli_version.outputs.CLI_VERSION }} |
|
57 | 63 | CLI_VERSION=$(./src/main/resources/cx-linux version | grep -Eo '^[0-9]+\.[0-9]+\.[0-9]+') |
58 | 64 | echo "CLI version being packed is $CLI_VERSION" |
59 | 65 | echo "CLI_VERSION=$CLI_VERSION" >> $GITHUB_ENV |
60 | | - echo "::set-output name=CLI_VERSION::$CLI_VERSION" |
| 66 | + echo "CLI_VERSION=$CLI_VERSION" >> $GITHUB_OUTPUT |
61 | 67 |
|
62 | 68 | - name: Check if CLI version is latest |
63 | 69 | if: ${{ github.event.inputs.dev == 'false' && !github.event.inputs.cliTag && github.ref == 'refs/heads/main' }} |
|
85 | 91 | git config user.email "${GITHUB_ACTOR}@users.noreply.github.com" |
86 | 92 | git tag -a "${tag}" -m "${message}" |
87 | 93 | git push origin "${tag}" |
88 | | - echo "::set-output name=TAG_NAME::${{ inputs.tag }}" |
| 94 | + echo "TAG_NAME=${{ inputs.tag }}" >> $GITHUB_OUTPUT |
89 | 95 |
|
90 | 96 | - name: Cache local Maven repository |
91 | 97 | uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0 |
@@ -131,26 +137,26 @@ jobs: |
131 | 137 | tag_name: ${{ inputs.tag }} |
132 | 138 | prerelease: ${{ inputs.dev }} |
133 | 139 |
|
134 | | - notify: |
135 | | - if: inputs.dev == false |
136 | | - needs: release |
137 | | - uses: Checkmarx/plugins-release-workflow/.github/workflows/release-notify.yml@main |
138 | | - with: |
139 | | - product_name: Java Wrapper |
140 | | - release_version: ${{ needs.release.outputs.TAG_NAME }} |
141 | | - cli_release_version: ${{ needs.release.outputs.CLI_VERSION }} |
142 | | - release_author: "Sypher Team" |
143 | | - release_url: https://github.com/Checkmarx/ast-cli-java-wrapper/releases/tag/${{ needs.release.outputs.TAG_NAME }} |
144 | | - jira_product_name: JAVA_WRAPPER |
145 | | - secrets: inherit |
| 140 | + # notify: |
| 141 | + # if: inputs.dev == false |
| 142 | + # needs: release |
| 143 | + # uses: Checkmarx/plugins-release-workflow/.github/workflows/release-notify.yml@main |
| 144 | + # with: |
| 145 | + # product_name: Java Wrapper |
| 146 | + # release_version: ${{ needs.release.outputs.TAG_NAME }} |
| 147 | + # cli_release_version: ${{ needs.release.outputs.CLI_VERSION }} |
| 148 | + # release_author: "Sypher Team" |
| 149 | + # release_url: https://github.com/Checkmarx/ast-cli-java-wrapper/releases/tag/${{ needs.release.outputs.TAG_NAME }} |
| 150 | + # jira_product_name: JAVA_WRAPPER |
| 151 | + # secrets: inherit |
146 | 152 |
|
147 | | - dispatch_auto_release: |
148 | | - name: Update Jenkins/Jetbrains/Eclipse Extensions With new Wrapper Version |
149 | | - if: inputs.dev == false |
150 | | - needs: notify |
151 | | - uses: Checkmarx/plugins-release-workflow/.github/workflows/dispatch-workflow.yml@main |
152 | | - with: |
153 | | - cli_version: ${{ needs.release.outputs.CLI_VERSION }} |
154 | | - is_cli_release: false |
155 | | - is_java_release: true |
156 | | - secrets: inherit |
| 153 | + # dispatch_auto_release: |
| 154 | + # name: Update Jenkins/Jetbrains/Eclipse Extensions With new Wrapper Version |
| 155 | + # if: inputs.dev == false |
| 156 | + # needs: notify |
| 157 | + # uses: Checkmarx/plugins-release-workflow/.github/workflows/dispatch-workflow.yml@main |
| 158 | + # with: |
| 159 | + # cli_version: ${{ needs.release.outputs.CLI_VERSION }} |
| 160 | + # is_cli_release: false |
| 161 | + # is_java_release: true |
| 162 | + # secrets: inherit |
0 commit comments