Skip to content

Commit

Permalink
ci(GitHub): Add Super-Linter job
Browse files Browse the repository at this point in the history
  • Loading branch information
oboukli committed Aug 4, 2023
1 parent 3117141 commit 14d526a
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 5 deletions.
31 changes: 26 additions & 5 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,13 @@ on:
pull_request:
branches:
- main
paths:
- "**.md"
push:
branches:
- main
paths:
- "**.md"
workflow_dispatch:

permissions:
contents: read
contents: none

jobs:
markdownlint:
Expand All @@ -32,3 +28,28 @@ jobs:

- name: Run markdownlint
run: markdownlint .

superlinter:
name: Super-Linter
permissions:
contents: read
packages: read
statuses: write

Check failure

Code scanning / Scorecard

Token-Permissions High

score is 8: jobLevel 'statuses' permission set to 'write'
Remediation tip: Verify which permissions are needed and consider whether you can reduce them.
Click Remediation section below for further remediation help
runs-on: ubuntu-latest

steps:
- name: Check out code
uses: actions/checkout@v3

Check warning

Code scanning / Scorecard

Pinned-Dependencies Medium

score is 7: GitHub-owned GitHubAction not pinned by hash
Click Remediation section below to solve this issue
with:
fetch-depth: 0
persist-credentials: false

- name: Run Super-Linter
uses: github/super-linter/slim@v5

Check warning

Code scanning / Scorecard

Pinned-Dependencies Medium

score is 7: GitHub-owned GitHubAction not pinned by hash
Click Remediation section below to solve this issue
env:
DEFAULT_BRANCH: main
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
HTML_FILE_NAME: ${{ github.workspace }}/.htmlhintrc
VALIDATE_ALL_CODEBASE: true
VALIDATE_JAVASCRIPT_STANDARD: false
VALIDATE_JSCPD: false
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
[![CodeQL](https://github.com/oboukli/tromino-puzzle/actions/workflows/codeql-analysis.yml/badge.svg?branch=main)](https://github.com/oboukli/tromino-puzzle/actions/workflows/codeql-analysis.yml?query=branch%3Amain)

[![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=oboukli_tromino-puzzle&metric=alert_status)](https://sonarcloud.io/summary/new_code?id=oboukli_tromino-puzzle)
[![GitHub Super-Linter](https://github.com/oboukli/tromino-puzzle/workflows/Lint%20Code%20Base/badge.svg)](https://github.com/marketplace/actions/super-linter)

This is a C99 library (see `src/core`) implementing a divide-and-conquer
algorithm, and a collection of apps (written in C17, C++17, and ECMAScript)
Expand Down

0 comments on commit 14d526a

Please sign in to comment.