Skip to content

CCM-18981: Replace deprecated create-release action - #665

Open
jamesthompson26-nhs wants to merge 4 commits into
mainfrom
feature/CCM-18981_Replace_Create_Release_Action
Open

CCM-18981: Replace deprecated create-release action#665
jamesthompson26-nhs wants to merge 4 commits into
mainfrom
feature/CCM-18981_Replace_Create_Release_Action

Conversation

@jamesthompson26-nhs

@jamesthompson26-nhs jamesthompson26-nhs commented Aug 3, 2026

Copy link
Copy Markdown
Contributor

Description

  • Replaced deprecated actions/create-release and actions/upload-release-asset with softprops/action-gh-release@3bb12739c298aeb8a4eeaf626c5b8d85266b0e65 (v2) in .github/workflows/stage-5-publish.yaml

publish job:

  • Added permissions: contents: write (required by the new action)
  • Removed actions/create-release and 7 individual actions/upload-release-asset steps
  • Replaced with a single softprops/action-gh-release step that creates the release and uploads all assets via the files: input
  • Zip steps are unchanged and continue to run before the release step

publish-oas-specs job:

  • Replaced actions/upload-release-asset with softprops/action-gh-release using tag_name: to find the existing release and append the OAS zip — no longer depends on needs.publish.outputs.upload_url

Context

actions/create-release and actions/upload-release-asset are deprecated and unmaintained. softprops/action-gh-release is the community-standard replacement and supports both release creation and asset upload in a single step. The action is pinned to a SHA for supply-chain security.

Type of changes

  • Refactoring (non-breaking change)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would change existing functionality)
  • Bug fix (non-breaking change which fixes an issue)

Checklist

  • I am familiar with the contributing guidelines
  • I have followed the code style of the project
  • I have added tests to cover my changes
  • I have updated the documentation accordingly
  • This PR is a result of pair or mob programming

DT3-Specific Checklist

  • If I have added a new resource (SQS, Lambda, Gateway, DDB table, etc), I have created the appropriate alarms

Sensitive Information Declaration

  • I confirm that neither PII/PID nor sensitive data are included in this PR and the codebase changes.

@jamesthompson26-nhs
jamesthompson26-nhs requested a review from a team as a code owner August 3, 2026 11:45
@jamesthompson26-nhs jamesthompson26-nhs changed the title Release deprecated create-release action CCM-18981: Release deprecated create-release action Aug 3, 2026
@jamesthompson26-nhs jamesthompson26-nhs changed the title CCM-18981: Release deprecated create-release action CCM-18981: Replace deprecated create-release action Aug 3, 2026
@sonarqubecloud

sonarqubecloud Bot commented Aug 3, 2026

Copy link
Copy Markdown

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants