Skip to content

Commit

Permalink
Update dependency review job
Browse files Browse the repository at this point in the history
Remove format code job
Update CODEOWNERS
Add Super-Linter
Add EditorConfig

Signed-off-by: Jacob Woffenden <jacob.woffenden@digital.justice.gov.uk>
  • Loading branch information
Jacob Woffenden committed Nov 6, 2023
1 parent 83e5b6f commit df2b3dd
Show file tree
Hide file tree
Showing 6 changed files with 65 additions and 27 deletions.
6 changes: 6 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
root = true

[*]
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true
4 changes: 1 addition & 3 deletions .github/CODEOWNERS
Original file line number Diff line number Diff line change
@@ -1,3 +1 @@
# Add a team or username to this file
# Example:
# * @ministryofjustice/operations-engineering
* @ministryofjustice/data-platform-apps-and-tools
2 changes: 2 additions & 0 deletions .github/super-linter.env
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
DEFAULT_BRANCH=main
VALIDATE_ALL_CODEBASE=false
28 changes: 18 additions & 10 deletions .github/workflows/dependency-review.yml
Original file line number Diff line number Diff line change
@@ -1,21 +1,29 @@
# Need a GitHub Advanced Security license to run this action on private repos.
---
name: Dependency review

name: Dependency Review
on:
pull_request:
types: [opened, edited, reopened, synchronize]
types:
- edited
- opened
- reopened
- synchronize

permissions:
contents: read
permissions: {}

jobs:
dependency-review:
name: Dependency review
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- name: Checkout Repository
uses: actions/checkout@v4
- name: Dependency Review
uses: actions/dependency-review-action@v3
- name: Checkout
id: checkout
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1

- name: Dependency review
id: dependency_review
uses: actions/dependency-review-action@6c5ccdad469c9f8a2996bfecaec55a631a347034 # v3.1.0
with:
# Possible values: critical, high, moderate, low
fail-on-severity: critical
14 changes: 0 additions & 14 deletions .github/workflows/format-code.yml

This file was deleted.

38 changes: 38 additions & 0 deletions .github/workflows/super-linter.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
---
name: Super-Linter

on:
pull_request:
branches:
- main
types:
- edited
- opened
- reopened
- synchronize

permissions: {}

jobs:
super-linter:
name: Super-Linter
runs-on: ubuntu-latest
permissions:
contents: read
statuses: write
steps:
- name: Checkout
id: checkout
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
with:
fetch-depth: 0

- name: Load Super-Linter Variables
id: load_super_linter_variables
run: cat .github/super-linter.env >>"${GITHUB_ENV}"

- name: Super-Linter
id: super_linter
uses: super-linter/super-linter/slim@35c3fa445cc217dfcc7b53eeb4e7aa95fcdd02fc # v5.6.1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit df2b3dd

Please sign in to comment.