Skip to content

Commit 3c72d1a

Browse files
committed
Fix github actions and pin super-linter version
The revision for the super linter image in Makefile hash was taken via: podman login ghcr.io -u mbaldessari -p $(gh auth token) skopeo inspect docker://ghcr.io/super-linter/super-linter:slim-v8.1.0 For the GH action: gh api repos/super-linter/super-linter/git/ref/tags/v8.1.0 | jq -r .object.sha
1 parent b4487c2 commit 3c72d1a

File tree

3 files changed

+9
-7
lines changed

3 files changed

+9
-7
lines changed

.github/workflows/pattern-sh-ci.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,14 @@ jobs:
2020
# Fedora is not an option yet
2121
os: [ubuntu-latest, ubuntu-22.04]
2222
runs-on: ${{ matrix.os }}
23+
permissions:
24+
contents: read
2325

2426
steps:
2527
- name: Checkout Repository
2628
uses: actions/checkout@v5
29+
with:
30+
persist-credentials: false
2731

2832
- name: Install Podman on Ubuntu
2933
if: contains(matrix.os, 'ubuntu')

.github/workflows/superlinter.yml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,19 +9,22 @@ jobs:
99
name: Super linter
1010
# Set the agent to run on
1111
runs-on: ubuntu-latest
12+
permissions:
13+
contents: read
1214

1315
steps:
1416
- name: Checkout Code
1517
uses: actions/checkout@v5
1618
with:
1719
# Full git history is needed to get a proper list of changed files within `super-linter`
1820
fetch-depth: 0
21+
persist-credentials: false
1922

2023
################################
2124
# Run Linter against code base #
2225
################################
2326
- name: Lint Code Base
24-
uses: super-linter/super-linter/slim@v7
27+
uses: super-linter/super-linter/slim@ffde3b2b33b745cb612d787f669ef9442b1339a6 # v8.1.0
2528
env:
2629
VALIDATE_ALL_CODEBASE: true
2730
DEFAULT_BRANCH: main
@@ -33,12 +36,7 @@ jobs:
3336
VALIDATE_JSCPD: false
3437
VALIDATE_JSON_PRETTIER: false
3538
VALIDATE_MARKDOWN_PRETTIER: false
36-
VALIDATE_KUBERNETES_KUBECONFORM: false
3739
VALIDATE_PYTHON_PYLINT: false
3840
VALIDATE_SHELL_SHFMT: false
3941
VALIDATE_YAML: false
4042
VALIDATE_YAML_PRETTIER: false
41-
# VALIDATE_DOCKERFILE_HADOLINT: false
42-
# VALIDATE_MARKDOWN: false
43-
# VALIDATE_NATURAL_LANGUAGE: false
44-
# VALIDATE_TEKTON: false

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,7 @@ super-linter: ## Runs super linter locally
263263
$(DISABLE_LINTERS) \
264264
-v $(PWD):/tmp/lint:rw,z \
265265
-w /tmp/lint \
266-
ghcr.io/super-linter/super-linter:slim-v8
266+
ghcr.io/super-linter/super-linter@sha256:6c71bd17ab38ceb7acb5b93ef72f5c2288b5456a5c82693ded3ee8bb501bba7f # slim-v8.1.0
267267

268268
.PHONY: deploy upgrade legacy-deploy legacy-upgrade
269269
deploy upgrade legacy-deploy legacy-upgrade:

0 commit comments

Comments
 (0)