@@ -7,11 +7,14 @@ on: # rebuild any PRs and main branch changes
77 push :
88 branches :
99 - main
10- - ' releases/*'
10+
11+ permissions : {}
1112
1213jobs :
1314 build : # make sure build/ci work properly
1415 runs-on : ubuntu-latest
16+ permissions :
17+ contents : read
1518 steps :
1619 - uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
1720 - uses : actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
2427 git diff --exit-code ':!dist/index.js.map' ':!badges/coverage.svg'
2528 test : # make sure the action works on a clean machine without building
2629 runs-on : ${{ matrix.os }}
30+ permissions :
31+ contents : read
2732 strategy :
2833 matrix :
2934 os : [ubuntu-latest, macos-latest, windows-latest]
4247 version : 0.28.0
4348 - name : Get the version
4449 run : stackit --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_EDITORCONFIG : true
72+ VALIDATE_ENV : true
73+ VALIDATE_GITHUB_ACTIONS : true
74+ VALIDATE_HTML : true
75+ # VALIDATE_JSON: true
76+ VALIDATE_NATURAL_LANGUAGE : true
77+ # VALIDATE_RENOVATE: true
78+ VALIDATE_SHELL_SHFMT : true
79+ VALIDATE_XML : true
80+ VALIDATE_YAML : true
81+
82+ release :
83+ if : github.repository_owner == 'jkroepke' && github.ref_name == 'main'
84+ name : Release
85+ runs-on : ubuntu-latest
86+ needs :
87+ - build
88+ - test
89+ - super-lint
90+ permissions :
91+ contents : write
92+ steps :
93+ - uses : actions/create-github-app-token@df432ceedc7162793a195dd1713ff69aefc7379e # v2.0.6
94+ id : app-token
95+ with :
96+ app-id : 1248576
97+ private-key : ${{ secrets.APP_RENOVATE_HELPER_PRIVATE_KEY }}
98+ - name : Checkout
99+ uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
100+ with :
101+ fetch-depth : 0
102+ - name : Setup Node.js
103+ uses : actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
104+ with :
105+ node-version : ' 22'
106+ - name : Install dependencies
107+ run : npm clean-install
108+ - name : Release
109+ env :
110+ GITHUB_TOKEN : ${{ steps.app-token.outputs.token }}
111+ run : npx semantic-release
0 commit comments