Skip to content

CI: Harden GHA configuration #46

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 4 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@

version: 2
updates:
- package-ecosystem: "github-actions"
directory: "/" # Location of your workflow files
schedule:
interval: "weekly" # Options: daily, weekly, monthly
2 changes: 2 additions & 0 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ jobs:
steps:
- name: Checkout repository
uses: actions/checkout@v3
with:
persist-credentials: false

- name: Initialize CodeQL
uses: github/codeql-action/init@v1
Expand Down
10 changes: 8 additions & 2 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
---

name: Linting
permissions:
contents: read
on: [pull_request]

jobs:
Expand All @@ -9,6 +11,8 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
persist-credentials: false

- name: Set up Python 3
uses: actions/setup-python@v3
Expand All @@ -17,7 +21,7 @@ jobs:
run: pip3 install flake8

- name: Set up reviewdog
uses: reviewdog/action-setup@v1
uses: reviewdog/action-setup@e04ffabe3898a0af8d0fb1af00c188831c4b5893 # v1

- name: Run flake8
env:
Expand All @@ -34,9 +38,11 @@ jobs:

steps:
- uses: actions/checkout@v3
with:
persist-credentials: false

- name: Set up Python 3
uses: actions/setup-python@v3

- name: ansible-lint
uses: reviewdog/action-ansiblelint@v1
uses: reviewdog/action-ansiblelint@5b8ca4b12dcbcdf63d4739dacd90609abafe8924 # v1
4 changes: 4 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
---

name: Tests
permissions:
contents: read
on: [push, pull_request]

jobs:
Expand All @@ -11,6 +13,8 @@ jobs:
python-version: ["3.11", "3.12"]
steps:
- uses: actions/checkout@v3
with:
persist-credentials: false

- name: Install Python ${{ matrix.python-version }}
uses: actions/setup-python@v3
Expand Down