From 1a2544222fb739b2b5820bd8e0ec6181f10ea863 Mon Sep 17 00:00:00 2001 From: Steffen Froehlich Date: Tue, 24 Nov 2026 05:54:02 +0100 Subject: [PATCH] Harden repo: pin actions to SHAs, add Dependabot config and security policy --- .github/dependabot.yml | 17 +++++++++++++++++ .github/workflows/docs.yaml | 10 +++++----- .github/workflows/release.yaml | 6 +++--- .github/workflows/validate.yaml | 10 +++++----- SECURITY.md | 13 +++++++++++++ 5 files changed, 43 insertions(+), 13 deletions(-) create mode 100644 .github/dependabot.yml create mode 100644 SECURITY.md diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 0000000..89471b4 --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,17 @@ +version: 2 +updates: + - package-ecosystem: github-actions + directory: / + schedule: + interval: weekly + groups: + actions: + patterns: + - "*" + - package-ecosystem: npm + directory: / + schedule: + interval: weekly + groups: + dev-dependencies: + dependency-type: development diff --git a/.github/workflows/docs.yaml b/.github/workflows/docs.yaml index 63f6a0b..974ac71 100644 --- a/.github/workflows/docs.yaml +++ b/.github/workflows/docs.yaml @@ -22,15 +22,15 @@ jobs: url: ${{ steps.deployment.outputs.page_url }} runs-on: ubuntu-latest steps: - - uses: actions/configure-pages@v6 - - uses: actions/checkout@v7 - - uses: actions/setup-python@v7 + - uses: actions/configure-pages@45bfe0192ca1faeb007ade9deae92b16b8254a0d # v6.0.0 + - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 + - uses: actions/setup-python@6d4fd22b20465ccc0f7354476588e8df7c9ca0e0 # v7.1.0 with: python-version: 3.x - run: pip install zensical - run: zensical build --clean - - uses: actions/upload-pages-artifact@v5 + - uses: actions/upload-pages-artifact@fc324d3547104276b827a68afc52ff2a11cc49c9 # v5.0.0 with: path: site - - uses: actions/deploy-pages@v5 + - uses: actions/deploy-pages@368f82528645a54fb793d4d04e342629a3f51346 # v5.0.1 id: deployment diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index a9fc4a6..2811d4d 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -15,8 +15,8 @@ jobs: release: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v7 - - uses: actions/setup-node@v7 + - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 + - uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0 with: node-version: 24 cache: npm @@ -32,7 +32,7 @@ jobs: - run: npm test - run: npm run build - name: Release - uses: softprops/action-gh-release@v3 + uses: softprops/action-gh-release@8a0cd651e5b2365bd640854a3fa5dfc70e4875f3 # v3.0.4 with: draft: true # a tag with a "-" (v0.5.0-beta.1) is a beta: published as pre-release, never "Latest" diff --git a/.github/workflows/validate.yaml b/.github/workflows/validate.yaml index d4eeb1d..a16c9d6 100644 --- a/.github/workflows/validate.yaml +++ b/.github/workflows/validate.yaml @@ -16,8 +16,8 @@ jobs: build-test: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v7 - - uses: actions/setup-node@v7 + - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 + - uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0 with: node-version: 24 cache: npm @@ -29,8 +29,8 @@ jobs: e2e: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v7 - - uses: actions/setup-node@v7 + - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 + - uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0 with: node-version: 24 cache: npm @@ -41,6 +41,6 @@ jobs: hacs: runs-on: ubuntu-latest steps: - - uses: hacs/action@22.5.0 + - uses: hacs/action@d556e736723344f83838d08488c983a15381059a # 22.5.0 with: category: plugin diff --git a/SECURITY.md b/SECURITY.md new file mode 100644 index 0000000..275e575 --- /dev/null +++ b/SECURITY.md @@ -0,0 +1,13 @@ +# Security Policy + +## Reporting a vulnerability + +Please do **not** open a public issue for security problems. + +Report vulnerabilities privately via +[GitHub Security Advisories](https://github.com/citoki/ebusd-time-program/security/advisories/new). +You will get a response as soon as possible. + +## Supported versions + +Only the latest release receives security fixes.