Skip to content

Commit

Permalink
ci(atlantis): fix super-linter (#382)
Browse files Browse the repository at this point in the history
  • Loading branch information
GMartinez-Sisti authored May 1, 2024
1 parent f51501b commit c634de8
Show file tree
Hide file tree
Showing 5 changed files with 24 additions and 3 deletions.
6 changes: 6 additions & 0 deletions .github/linters/.jscpd.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"ignore": [
"**/charts/atlantis/templates/**",
"**/charts/atlantis/tests/**"
]
}
2 changes: 2 additions & 0 deletions .github/workflows/lint-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ defaults:
run:
shell: bash

permissions: read-all

jobs:
lint-test:
runs-on: ubuntu-latest
Expand Down
7 changes: 5 additions & 2 deletions .github/workflows/linter.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,21 @@ name: Lint Code Base

on:
pull_request:
paths:
- 'charts/atlantis/**'

permissions: read-all

jobs:
build:
name: Lint Code Base
runs-on: ubuntu-latest
permissions:
statuses: write
steps:
- name: Checkout Code
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Lint Code Base
uses: github/super-linter@v6
env:
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,13 @@ on:
paths:
- 'charts/atlantis/**'

permissions: read-all

jobs:
release:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout
uses: actions/checkout@v4
Expand Down
8 changes: 7 additions & 1 deletion .github/workflows/stale.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,15 @@ name: Close Stale PRs
on:
schedule:
- cron: '30 1 * * *'

permissions: read-all

jobs:
stale:
runs-on: ubuntu-22.04
runs-on: ubuntu-latest
permissions:
issues: write
pull-requests: write
steps:
- uses: actions/stale@v9
with:
Expand Down

0 comments on commit c634de8

Please sign in to comment.