8000 update linter action · flexbox/github-bootcamp@283fa99 · GitHub
[go: up one dir, main page]

Skip to content

Commit 283fa99

Browse files
committed
update linter action
1 parent 3e35d55 commit 283fa99

File tree

1 file changed

+15
-12
lines changed

1 file changed

+15
-12
lines changed

challenges/103/03.md

Lines changed: 15 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -16,28 +16,31 @@
1616
```yml
1717
name: Linter
1818

19-
# Run this workflow every time a new commit pushed to your repository
2019
on: push
2120

2221
jobs:
23-
# Set the job key. The key is displayed as the job name
24-
# when a job name is not provided
25-
super-lint:
26-
# Name the Job
27-
name: Lint code base
28-
# Set the type of machine to run on
22+
build:
23+
name: Lint
2924
runs-on: ubuntu-latest
3025

26+
permissions:
27+
contents: read
28+
packages: read
29+
# To report GitHub Actions status checks
30+
statuses: write
31+
3132
steps:
32-
# Checks out a copy of your repository on the ubuntu-latest machine
3333
- name: Checkout code
3434
uses: actions/checkout@v4
35+
with:
36+
# super-linter needs the full git history to get the
37+
# list of files that changed across commits
38+
fetch-depth: 0
3539

36-
# Runs the Super-Linter action
37-
- name: Run Super-Linter
38-
uses: github/super-linter@v5
40+
- name: Super-linter
41+
uses: super-linter/super-linter@v6.3.1 # x-release-please-version
3942
env:
40-
DEFAULT_BRANCH: main
43+
# To report GitHub Actions status checks
4144
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4245
```
4346

0 commit comments

Comments
 (0)
0