Skip to content

Commit 9b74553

Browse files
authored
Workflow and pre-commit clean ups (john-bampton#226)
1 parent c20ff6d commit 9b74553

10 files changed

Lines changed: 20 additions & 3 deletions

.github/dependabot.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
---
12
version: 2
23
updates:
34
- package-ecosystem: 'github-actions'

.github/labeler.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
---
12
css:
23
- '**/*.css'
34
html:

.github/linters/.markdown-lint.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
---
12
# MD013/line-length
23
MD013: false
34

.github/linters/.yaml-lint.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,5 @@ extends: default
44
rules:
55
comments:
66
min-spaces-from-content: 1
7-
document-start: disable
87
line-length: disable
98
truthy: disable

.github/workflows/codeql-analysis.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
---
12
# For most projects, this workflow file will not need changing; you simply need
23
# to commit it to your repository.
34
#
@@ -20,6 +21,9 @@ on:
2021
schedule:
2122
- cron: '26 19 * * 1'
2223

24+
permissions:
25+
contents: read
26+
2327
jobs:
2428
analyze:
2529
name: Analyze

.github/workflows/fetch-daily.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,14 @@
1+
---
12
name: Fetch GitHub Users Daily
23

34
on:
45
schedule:
56
- cron: '0 2 * * *'
67
workflow_dispatch:
78

9+
permissions:
10+
contents: read
11+
812
jobs:
913
fetch-users:
1014
runs-on: ubuntu-latest

.github/workflows/pre-commit.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
---
12
name: pre-commit
23

34
on: [pull_request]

.github/workflows/render-on-push.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
---
12
name: Render HTML on Changes
23

34
on:
@@ -13,6 +14,9 @@ on:
1314
types: [closed]
1415
workflow_dispatch:
1516

17+
permissions:
18+
contents: read
19+
1620
jobs:
1721
render-html:
1822
if: ${{ github.event_name != 'pull_request' || (github.event.pull_request && github.event.pull_request.merged == true) }}

.github/workflows/super-linter.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
---
12
name: Lint Code
23
on:
34
push:

.pre-commit-config.yaml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
1+
---
12
default_stages: [pre-commit, pre-push]
23
default_language_version:
34
python: python3
4-
node: 24.12.0
5+
node: 24.15.0
56
repos:
67
- repo: meta
78
hooks:
@@ -16,7 +17,7 @@ repos:
1617
entry: prettier --write '**/*.yaml' '**/*.yml'
1718
files: \.ya?ml$
1819
language: node
19-
additional_dependencies: ['prettier@3.7.4']
20+
additional_dependencies: ['prettier@3.8.3']
2021
- repo: https://github.com/pycqa/isort
2122
rev: 8.0.1
2223
hooks:

0 commit comments

Comments
 (0)