richardsimko/update-tag main
“A Github action that simply tags the repository with the specified tag.”
Untrusted PR text enters workflow commandspull_request_target shell injection risk
SHA-25669abffca04d48cc6dbc4e6aa60c31a2aa27375195cb9265ea6a901740f12597b
Evidence
1name: Test Released Version
2on:
3 workflow_dispatch:
4
5jobs:
6 update-ref:
7 name: Update reference
8 runs-on: ubuntu-latest
9 steps:
10 - name: Checkout
11 uses: actions/checkout@v7
12 - name: Prepare Node
13 uses: actions/setup-node@v7
⋯6 lines
20 tag_name: test-released-version
21 env:
22 GITHUB_TOKEN: ${{ github.token }}
1{
2 "name": "github-tag-action",
3 "version": "3.0.0",
4 "main": "index.js",
5 "type": "module",
6 "repository": "[email protected]:richardsimko/github-tag-action.git",
7 "author": "Richard Simko <1245031+[email protected]>",
8 "license": "MIT",
9 "scripts": {
10 "build": "tsc",
11 "lint": "eslint ."
12 },
13 "dependencies": {
14 "@actions/core": "^3.0.1",
15 "@actions/github": "^9.1.1"
16 },
17 "devDependencies": {
18 "@eslint/js": "^10.0.1",
19 "@types/node": "^26.6.6",
20 "@typescript-eslint/eslint-plugin": "^8.72.1",
21 "@typescript-eslint/parser": "^8.72.1",
22 "eslint": "^10.14.0",
23 "eslint-config-prettier": "^10.0.0",
24 "eslint-plugin-prettier": "^5.5.7",
25 "prettier": "^3.9.10",
26 "typescript": "6.0.3"
27 }
28}
1import * as core from '@actions/core';
2import * as github from '@actions/github';
3
4async function run() {
5 try {
6 const { GITHUB_SHA } = process.env;
7 let { GITHUB_TOKEN } = process.env;
8 const tagName = core.getInput('tag_name');
9 if (!GITHUB_SHA) {
10 core.setFailed('Missing GITHUB_SHA');
11 return;
12 }
13
14 if (!GITHUB_TOKEN) {
15 GITHUB_TOKEN = core.getInput('github_token');
16 }
17
⋯31 lines
No evidence locations were recorded for this file. Raw result