-
Notifications
You must be signed in to change notification settings - Fork 1
chore: Cherry-picked changes from upstream #38
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,13 @@ | ||
| root = true | ||
|
|
||
| [*] | ||
| charset = utf-8 | ||
| indent_style = space | ||
| indent_size = 4 | ||
| insert_final_newline = true | ||
| trim_trailing_whitespace = true | ||
| end_of_line = lf | ||
| max_line_length = 160 | ||
|
|
||
| [*.{yaml,yml,json}] | ||
| indent_size = 2 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,108 @@ | ||
| env: | ||
| RUNNER_DEBUG: 1 | ||
|
|
||
| name: 'CI' | ||
| on: # rebuild any PRs and main branch changes | ||
| pull_request: | ||
| push: | ||
| branches: | ||
| - main | ||
|
|
||
| permissions: {} | ||
|
|
||
| jobs: | ||
| build: # make sure build/ci work properly | ||
| runs-on: ubuntu-latest | ||
| permissions: | ||
| contents: read | ||
| steps: | ||
| - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | ||
| - uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0 | ||
| with: | ||
| node-version: '22' | ||
| - run: | | ||
| npm install | ||
| npm run all | ||
| - run: | | ||
| git diff --exit-code ':!dist/index.js.map' ':!badges/coverage.svg' | ||
| test: # make sure the action works on a clean machine without building | ||
| runs-on: ${{ matrix.os }} | ||
| permissions: | ||
| contents: read | ||
| strategy: | ||
| matrix: | ||
| os: [ubuntu-latest, macos-latest, windows-latest] | ||
| steps: | ||
| - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | ||
| - uses: ./ | ||
| - name: Get the version | ||
| run: vals version | ||
| - uses: ./ | ||
| with: | ||
| version: v0.40.0 | ||
| - name: Get the version | ||
| run: vals version | grep 0.40.0 | ||
| - uses: ./ | ||
| with: | ||
| version: 0.28.0 | ||
| - name: Get the version | ||
| run: vals version | grep 0.28.0 | ||
|
|
||
| super-lint: | ||
| name: super-lint | ||
| runs-on: ubuntu-24.04 | ||
| permissions: | ||
| contents: read | ||
| steps: | ||
| - name: Checkout Code | ||
| uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | ||
| with: | ||
| fetch-depth: 0 | ||
|
|
||
| - name: Lint Code Base | ||
| uses: super-linter/super-linter/slim@4e8a7c2bf106c4c766c816b35ec612638dc9b6b2 # v7.3.0 | ||
| env: | ||
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
| MULTI_STATUS: false | ||
| LINTER_RULES_PATH: . | ||
| VALIDATE_ALL_CODEBASE: true | ||
| VALIDATE_BASH: true | ||
| VALIDATE_BASH_EXEC: true | ||
| VALIDATE_ENV: true | ||
| VALIDATE_GITHUB_ACTIONS: true | ||
| VALIDATE_HTML: true | ||
| VALIDATE_NATURAL_LANGUAGE: true | ||
| VALIDATE_SHELL_SHFMT: true | ||
| VALIDATE_XML: true | ||
| VALIDATE_YAML: true | ||
|
|
||
| release: | ||
| if: github.repository_owner == 'jkroepke' && github.ref_name == 'main' | ||
| name: Release | ||
| runs-on: ubuntu-latest | ||
| needs: | ||
| - build | ||
| - test | ||
| - super-lint | ||
| permissions: | ||
| contents: write | ||
| steps: | ||
| - uses: actions/create-github-app-token@df432ceedc7162793a195dd1713ff69aefc7379e # v2.0.6 | ||
| id: app-token | ||
| with: | ||
| app-id: 1248576 | ||
| private-key: ${{ secrets.AUTOMATION_APP_PRIVATE_KEY }} | ||
| - name: Checkout | ||
| uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | ||
| with: | ||
| fetch-depth: 0 | ||
| - name: Setup Node.js | ||
| uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0 | ||
| with: | ||
| node-version: '22' | ||
| - name: Install dependencies | ||
| run: npm clean-install | ||
| - name: Release | ||
| env: | ||
| GITHUB_TOKEN: ${{ steps.app-token.outputs.token }} | ||
| run: npx semantic-release | ||
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -97,3 +97,6 @@ Thumbs.db | |
| __tests__/runner/* | ||
|
|
||
| .idea | ||
|
|
||
| /badges/* | ||
| !/badges/.gitkeep | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,2 @@ | ||
| npm run all | ||
| git update-index --again |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,2 @@ | ||
| .github/**/*.yaml | ||
| dist/* |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,21 +1,28 @@ | ||
| ## Setup Vals | ||
| [](https://github.com/jkroepke/setup-vals/actions/workflows/ci.yml) | ||
| [](https://github.com/jkroepke/setup-vals/blob/master/LICENSE) | ||
| [](https://github.com/jkroepke/setup-vals/releases/latest) | ||
| [](https://github.com/jkroepke/setup-vals/stargazers) | ||
|
|
||
| # Setup vals | ||
|
|
||
| ## About | ||
|
|
||
| GitHub Action for installing | ||
| [variantdev/vals](https://github.com/variantdev/vals) | ||
|
|
||
| Install a specific version of vals binary on the runner. Acceptable values are | ||
| latest or any semantic version string like v2.16.7 Use this action in workflow | ||
| to define which version of sops will be used. | ||
| latest or any semantic version string like v2.16.7. Use this action in workflow | ||
| to define which version of vals will be used. | ||
|
|
||
| ```yaml | ||
| - name: Vals Binary Installer | ||
| - name: Stackit Binary Installer | ||
| uses: step-security/setup-vals@v1 | ||
| with: | ||
| version: '<version>' # default is latest stable | ||
| id: install | ||
| ``` | ||
|
|
||
| The cached vals binary path is prepended to the PATH environment variable as | ||
| well as stored in the vals-path output variable. Refer to the action metadata | ||
| file for details about all the inputs | ||
| [here](https://github.com/step-security/setup-vals/blob/master/action.yml). | ||
| The cached binary path is prepended to the PATH environment variable as well as | ||
| stored in the path output variable. Refer to the action metadata file for | ||
| details about all the inputs | ||
| [here](https://github.com/step-security/setup-vals/blob/main/action.yml). |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove this