Skip to content

Commit 6fbe097

Browse files
cherry-picked manually
modified renovate removed renovate removed
1 parent 304e384 commit 6fbe097

File tree

12 files changed

+152
-64
lines changed

12 files changed

+152
-64
lines changed

.editorconfig

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
root = true
2+
3+
[*]
4+
charset = utf-8
5+
indent_style = space
6+
indent_size = 4
7+
insert_final_newline = true
8+
trim_trailing_whitespace = true
9+
end_of_line = lf
10+
max_line_length = 160
11+
12+
[*.{yaml,yml,json}]
13+
indent_size = 2

.env

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -53,10 +53,9 @@ INPUT_MILLISECONDS=2400
5353
# GITHUB_WORKFLOW_REF=""
5454
# GITHUB_WORKFLOW_SHA=""
5555
# GITHUB_WORKSPACE=""
56-
RUNNER_ARCH="X"
56+
# RUNNER_ARCH=""
5757
# RUNNER_DEBUG=""
5858
# RUNNER_NAME=""
59-
INPUT_VERSION="latest"
60-
RUNNER_OS="macOS"
61-
RUNNER_TEMP=".local/tmp"
62-
RUNNER_TOOL_CACHE=".local/cache"
59+
# RUNNER_OS=""
60+
RUNNER_TEMP=.local/tmp
61+
RUNNER_TOOL_CACHE=.local/cache

.github/workflows/auto_cherry_pick.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ on:
44
workflow_dispatch:
55
inputs:
66
base_branch:
7-
description: "Base branch to create the PR against"
7+
description: 'Base branch to create the PR against'
88
required: true
9-
default: "main"
9+
default: 'main'
1010
script:
1111
description: 'Script to run after audit fix'
1212
required: false
@@ -22,7 +22,7 @@ jobs:
2222
cherry-pick:
2323
uses: step-security/reusable-workflows/.github/workflows/auto_cherry_pick.yaml@v1
2424
with:
25-
original-owner: "jkroepke"
26-
repo-name: "setup-vals"
25+
original-owner: 'jkroepke'
26+
repo-name: 'setup-vals'
2727
base_branch: ${{ inputs.base_branch }}
2828
script: ${{ inputs.script || 'npm run all' }}

.github/workflows/ci.yml

Lines changed: 108 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,108 @@
1+
env:
2+
RUNNER_DEBUG: 1
3+
4+
name: 'CI'
5+
on: # rebuild any PRs and main branch changes
6+
pull_request:
7+
push:
8+
branches:
9+
- main
10+
11+
permissions: {}
12+
13+
jobs:
14+
build: # make sure build/ci work properly
15+
runs-on: ubuntu-latest
16+
permissions:
17+
contents: read
18+
steps:
19+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
20+
- uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
21+
with:
22+
node-version: '22'
23+
- run: |
24+
npm install
25+
npm run all
26+
- run: |
27+
git diff --exit-code ':!dist/index.js.map' ':!badges/coverage.svg'
28+
test: # make sure the action works on a clean machine without building
29+
runs-on: ${{ matrix.os }}
30+
permissions:
31+
contents: read
32+
strategy:
33+
matrix:
34+
os: [ubuntu-latest, macos-latest, windows-latest]
35+
steps:
36+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
37+
- uses: ./
38+
- name: Get the version
39+
run: vals version
40+
- uses: ./
41+
with:
42+
version: v0.40.0
43+
- name: Get the version
44+
run: vals version | grep 0.40.0
45+
- uses: ./
46+
with:
47+
version: 0.28.0
48+
- name: Get the version
49+
run: vals version | grep 0.28.0
50+
51+
super-lint:
52+
name: super-lint
53+
runs-on: ubuntu-24.04
54+
permissions:
55+
contents: read
56+
steps:
57+
- name: Checkout Code
58+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
59+
with:
60+
fetch-depth: 0
61+
62+
- name: Lint Code Base
63+
uses: super-linter/super-linter/slim@4e8a7c2bf106c4c766c816b35ec612638dc9b6b2 # v7.3.0
64+
env:
65+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
66+
MULTI_STATUS: false
67+
LINTER_RULES_PATH: .
68+
VALIDATE_ALL_CODEBASE: true
69+
VALIDATE_BASH: true
70+
VALIDATE_BASH_EXEC: true
71+
VALIDATE_ENV: true
72+
VALIDATE_GITHUB_ACTIONS: true
73+
VALIDATE_HTML: true
74+
VALIDATE_NATURAL_LANGUAGE: true
75+
VALIDATE_SHELL_SHFMT: true
76+
VALIDATE_XML: true
77+
VALIDATE_YAML: true
78+
79+
release:
80+
if: github.repository_owner == 'jkroepke' && github.ref_name == 'main'
81+
name: Release
82+
runs-on: ubuntu-latest
83+
needs:
84+
- build
85+
- test
86+
- super-lint
87+
permissions:
88+
contents: write
89+
steps:
90+
- uses: actions/create-github-app-token@df432ceedc7162793a195dd1713ff69aefc7379e # v2.0.6
91+
id: app-token
92+
with:
93+
app-id: 1248576
94+
private-key: ${{ secrets.AUTOMATION_APP_PRIVATE_KEY }}
95+
- name: Checkout
96+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
97+
with:
98+
fetch-depth: 0
99+
- name: Setup Node.js
100+
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
101+
with:
102+
node-version: '22'
103+
- name: Install dependencies
104+
run: npm clean-install
105+
- name: Release
106+
env:
107+
GITHUB_TOKEN: ${{ steps.app-token.outputs.token }}
108+
run: npx semantic-release

.github/workflows/test.yml

Lines changed: 0 additions & 45 deletions
This file was deleted.

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,3 +97,6 @@ Thumbs.db
9797
__tests__/runner/*
9898

9999
.idea
100+
101+
/badges/*
102+
!/badges/.gitkeep

.husky/pre-commit

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
npm run all
2+
git update-index --again

.prettierignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
.github/**/*.yaml
2+
dist/*

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
The MIT License (MIT)
22

3-
Copyright (c) Microsoft Corporation.
3+
Copyright (c) 2025 Jan-Otto Kröpke
44
Copyright (c) 2025 StepSecurity
55

66
Permission is hereby granted, free of charge, to any person obtaining a copy

README.md

Lines changed: 15 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,28 @@
1-
## Setup Vals
1+
[![CI](https://github.com/jkroepke/setup-vals/actions/workflows/ci.yml/badge.svg)](https://github.com/jkroepke/setup-vals/actions/workflows/ci.yml)
2+
[![GitHub license](https://img.shields.io/github/license/jkroepke/setup-vals)](https://github.com/jkroepke/setup-vals/blob/master/LICENSE)
3+
[![Current Release](https://img.shields.io/github/release/jkroepke/setup-vals.svg?logo=github)](https://github.com/jkroepke/setup-vals/releases/latest)
4+
[![GitHub Repo stars](https://img.shields.io/github/stars/jkroepke/setup-vals?style=flat&logo=github)](https://github.com/jkroepke/setup-vals/stargazers)
5+
6+
# Setup vals
7+
8+
## About
29

310
GitHub Action for installing
411
[variantdev/vals](https://github.com/variantdev/vals)
512

613
Install a specific version of vals binary on the runner. Acceptable values are
7-
latest or any semantic version string like v2.16.7 Use this action in workflow
8-
to define which version of sops will be used.
14+
latest or any semantic version string like v2.16.7. Use this action in workflow
15+
to define which version of vals will be used.
916

1017
```yaml
11-
- name: Vals Binary Installer
18+
- name: Stackit Binary Installer
1219
uses: step-security/setup-vals@v1
1320
with:
1421
version: '<version>' # default is latest stable
1522
id: install
1623
```
1724
18-
The cached vals binary path is prepended to the PATH environment variable as
19-
well as stored in the vals-path output variable. Refer to the action metadata
20-
file for details about all the inputs
21-
[here](https://github.com/step-security/setup-vals/blob/master/action.yml).
25+
The cached binary path is prepended to the PATH environment variable as well as
26+
stored in the path output variable. Refer to the action metadata file for
27+
details about all the inputs
28+
[here](https://github.com/step-security/setup-vals/blob/main/action.yml).

0 commit comments

Comments
 (0)