Skip to content

Commit 27a1ece

Browse files
committed
Fully Templated Docker cached build job
Fully Templated Docker cached build job - most parameters are defaulted based on git variables - all of defaulted parameters can be overwritten using inputs - fixes to existing workflows due to naming convention miss-match between action pull_request and push Signed-off-by: Milosz Linkiewicz <[email protected]>
1 parent 4d08092 commit 27a1ece

File tree

14 files changed

+244
-368
lines changed

14 files changed

+244
-368
lines changed

.github/configs/super-linter/.golangci.yml

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -31,12 +31,7 @@ linters-settings:
3131
check-blank: true
3232
govet:
3333
enable:
34-
# report about shadowed variables
35-
- shadowing
34+
- shadow
3635
gocyclo:
3736
# minimal code complexity to report, 30 by default
3837
min-complexity: 15
39-
maligned:
40-
# print struct with more effective memory layout or not, false by default
41-
suggest-new: true
42-

.github/workflows/codeql.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ permissions:
2020
contents: read
2121

2222
concurrency:
23-
group: ${{ github.workflow }}-${{ github.event.pull_request.number || env.GITHUB_SHA }}
23+
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}
2424
cancel-in-progress: true
2525

2626
jobs:

.github/workflows/coverity.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ permissions:
2121
contents: read
2222

2323
concurrency:
24-
group: ${{ github.workflow }}-${{ github.event.pull_request.number || env.GITHUB_SHA }}
24+
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}
2525
cancel-in-progress: true
2626

2727
jobs:
@@ -93,7 +93,7 @@ jobs:
9393
${{ github.workspace }}/ffmpeg-plugin/configure-ffmpeg.sh && \
9494
${{ github.workspace }}/ffmpeg-plugin/build-ffmpeg.sh
9595
96-
- uses: actions/upload-artifact@v4
96+
- uses: actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 # v4.4.3
9797
with:
9898
name: coverity-reports
9999
path: '${{ github.workspace }}/cov-int'

.github/workflows/dependency-review.yml

Lines changed: 29 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ env:
99
LINTER_RULES_PATH: .github/configs/super-linter
1010

1111
concurrency:
12-
group: ${{ github.workflow }}-${{ github.event.pull_request.number || env.GITHUB_SHA }}
12+
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}
1313
cancel-in-progress: true
1414

1515
jobs:
@@ -32,8 +32,14 @@ jobs:
3232
name: 'super-linter: Workflow initializing'
3333
runs-on: 'ubuntu-22.04'
3434
permissions:
35-
statuses: write
35+
contents: read
36+
packages: read
3637
timeout-minutes: 90
38+
env:
39+
SUPER_LINTER_OUTPUT_DIRECTORY_NAME: super-linter-output
40+
SUPER_LINTER_SUMMARY_FILE_NAME: super-linter-summary.md
41+
SAVE_SUPER_LINTER_SUMMARY: true
42+
ENABLE_GITHUB_ACTIONS_STEP_SUMMARY : true
3743
steps:
3844
- name: 'super-linter: Harden Runner'
3945
uses: step-security/harden-runner@17d0e2bd7d51742c71671bd19fa12bdc9d40a3d6 # v2.8.1
@@ -46,7 +52,26 @@ jobs:
4652
fetch-depth: 0
4753
ref: ${{ inputs.branch }}
4854

49-
- name: 'super-linter: perform supe-linter scan workflow.'
50-
uses: super-linter/super-linter@v7.2.0 # x-release-please-version
55+
- name: 'super-linter: perform super-linter scan workflow.'
56+
uses: super-linter/super-linter/slim@e1cb86b6e8d119f789513668b4b30bf17fe1efe4 # v7.2.0 x-release-please-version
5157
env:
5258
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
59+
DISABLE_ERRORS: true
60+
VALIDATE_PROTOBUF: true
61+
VALIDATE_MARKDOWN: true
62+
VALIDATE_MARKDOWN_PRETTIER: true
63+
VALIDATE_JSONC: true
64+
VALIDATE_GO: true
65+
VALIDATE_GITHUB_ACTIONS: true
66+
VALIDATE_CPP: true
67+
VALIDATE_CLANG_FORMAT: true
68+
VALIDATE_BASH: true
69+
VALIDATE_BASH_EXEC: true
70+
71+
- name: 'super-linter: upload linter results as an artifact.'
72+
uses: actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 # v4.4.3
73+
if: env.SAVE_SUPER_LINTER_SUMMARY == 'true' || env.ENABLE_GITHUB_ACTIONS_STEP_SUMMARY == 'true'
74+
with:
75+
name: coverity-reports
76+
path:
77+
'${{ github.workspace }}/${{ env.SUPER_LINTER_OUTPUT_DIRECTORY_NAME }}/${{ env.SUPER_LINTER_SUMMARY_FILE_NAME }}'

0 commit comments

Comments
 (0)