Skip to content

Commit b5b858a

Browse files
committed
adding a workflow for adding a version tag + minor README changes
1 parent 4362c80 commit b5b858a

File tree

2 files changed

+38
-1
lines changed

2 files changed

+38
-1
lines changed
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: Release New Action Version
2+
on:
3+
workflow_dispatch:
4+
inputs:
5+
TAG_NAME:
6+
description: "Tag name that the major tag will point to"
7+
required: true
8+
9+
env:
10+
TAG_NAME: ${{ github.event.inputs.TAG_NAME || github.event.release.tag_name }}
11+
defaults:
12+
run:
13+
shell: pwsh
14+
15+
permissions: # added using https://github.com/step-security/secure-workflows
16+
contents: read
17+
18+
jobs:
19+
update_tag:
20+
permissions:
21+
id-token: write
22+
name: Update the major tag to include the ${{ github.event.inputs.TAG_NAME || github.event.release.tag_name }} changes
23+
# Remember to configure the releaseNewActionVersion environment with required approvers in the repository settings
24+
environment:
25+
name: releaseNewActionVersion
26+
runs-on: ubuntu-latest
27+
steps:
28+
- uses: step-security/harden-runner@128a63446a954579617e875aaab7d2978154e969
29+
with:
30+
allowed-endpoints: api.github.com:443
31+
github.com:443
32+
prod.api.stepsecurity.io:443
33+
- name: Update the ${{ env.TAG_NAME }} tag
34+
uses: step-security/publish-action@b438f840875fdcb7d1de4fc3d1d30e86cf6acb5d
35+
with:
36+
source-tag: ${{ env.TAG_NAME }}
37+
token: ${{ steps.wait-for-secrets.outputs.PAT }}

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ jobs:
5757
int.api.stepsecurity.io:443
5858
5959
- name: Code Review
60-
uses: step-security/ai-codewise@int
60+
uses: step-security/ai-codewise@v1
6161
```
6262
6363
When you create a pull request in the repository, the workflow will get triggered and add a pull request comment. Here is an screenshot of what the comment will look like:

0 commit comments

Comments
 (0)