Hostile 100% github Download

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

Evidence

actions/checkout workflow step reference test-released-version.yml · lines 1–22
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 }}
Package has author with email package.json · lines 1–28
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}
References the GITHUB_TOKEN environment variable main.ts · lines 1–48
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

Keyboard shortcuts on this page: j for the next sample, k for the previous one, x to go back to the feed, d to download the original bytes, r to re-queue the sample for analysis.