[PR #348] [MERGED] [StepSecurity] Apply security best practices #361

Closed
opened 2026-03-03 14:30:50 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/konstruktoid/hardening/pull/348
Author: @step-security-bot
Created: 12/21/2023
Status: Merged
Merged: 12/21/2023
Merged by: @konstruktoid

Base: masterHead: stepsecurity_remediation_1703158185


📝 Commits (1)

  • ac390cd [StepSecurity] Apply security best practices

📊 Changes

8 files changed (+78 additions, -1 deletions)

View changed files

.github/dependabot.yml (+11 -0)
.github/workflows/dependency-review.yml (+27 -0)
📝 .github/workflows/issues.yml (+5 -0)
📝 .github/workflows/scorecards.yml (+5 -0)
📝 .github/workflows/shellcheck.yml (+5 -0)
📝 .github/workflows/slsa.yml (+10 -0)
.pre-commit-config.yaml (+14 -0)
📝 action-shellcheck/Dockerfile (+1 -1)

📄 Description

Summary

This pull request is created by StepSecurity at the request of @konstruktoid. Please merge the Pull Request to incorporate the requested changes. Please tag @konstruktoid on your message if you have any questions related to the PR.

Security Fixes

Harden Runner

Harden-Runner is an open-source security agent for the GitHub-hosted runner to prevent software supply chain attacks. It prevents exfiltration of credentials, detects tampering of source code during build, and enables running jobs without sudo access.

Harden runner usage

You can find link to view insights and policy recommendation in the build log

Please refer to documentation to find more details.

Keeping your actions up to date with Dependabot

With Dependabot version updates, when Dependabot identifies an outdated dependency, it raises a pull request to update the manifest to the latest version of the dependency. This is recommended by GitHub as well as The Open Source Security Foundation (OpenSSF).

Secure Dockerfiles

Pin image tags to digests in Dockerfiles. With the Docker v2 API release, it became possible to use digests in place of tags when pulling images or to use them in FROM lines in Dockerfiles.

Add Dependency Review Workflow

The Dependency Review Workflow enforces dependency reviews on your pull requests. The action scans for vulnerable versions of dependencies introduced by package version changes in pull requests, and warns you about the associated security vulnerabilities. This gives you better visibility of what's changing in a pull request, and helps prevent vulnerabilities being added to your repository.

Maintain Code Quality with Pre-Commit

Pre-commit is a framework for managing and maintaining multi-language pre-commit hooks. Hooks can be any scripts, code, or binaries that run at any stage of the git workflow. Pre-commit hooks are useful for enforcing code quality, code formatting, and detecting security vulnerabilities.

Feedback

For bug reports, feature requests, and general feedback; please email support@stepsecurity.io. To create such PRs, please visit https://app.stepsecurity.io/securerepo.

Signed-off-by: StepSecurity Bot bot@stepsecurity.io


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/konstruktoid/hardening/pull/348 **Author:** [@step-security-bot](https://github.com/step-security-bot) **Created:** 12/21/2023 **Status:** ✅ Merged **Merged:** 12/21/2023 **Merged by:** [@konstruktoid](https://github.com/konstruktoid) **Base:** `master` ← **Head:** `stepsecurity_remediation_1703158185` --- ### 📝 Commits (1) - [`ac390cd`](https://github.com/konstruktoid/hardening/commit/ac390cd91c70f52699b05474405336a0843a0def) [StepSecurity] Apply security best practices ### 📊 Changes **8 files changed** (+78 additions, -1 deletions) <details> <summary>View changed files</summary> ➕ `.github/dependabot.yml` (+11 -0) ➕ `.github/workflows/dependency-review.yml` (+27 -0) 📝 `.github/workflows/issues.yml` (+5 -0) 📝 `.github/workflows/scorecards.yml` (+5 -0) 📝 `.github/workflows/shellcheck.yml` (+5 -0) 📝 `.github/workflows/slsa.yml` (+10 -0) ➕ `.pre-commit-config.yaml` (+14 -0) 📝 `action-shellcheck/Dockerfile` (+1 -1) </details> ### 📄 Description ## Summary This pull request is created by [StepSecurity](https://app.stepsecurity.io/securerepo) at the request of @konstruktoid. Please merge the Pull Request to incorporate the requested changes. Please tag @konstruktoid on your message if you have any questions related to the PR. ## Security Fixes ### Harden Runner [Harden-Runner](https://github.com/step-security/harden-runner) is an open-source security agent for the GitHub-hosted runner to prevent software supply chain attacks. It prevents exfiltration of credentials, detects tampering of source code during build, and enables running jobs without `sudo` access. <details> <summary>Harden runner usage</summary> You can find link to view insights and policy recommendation in the build log <img src="https://github.com/step-security/harden-runner/blob/main/images/buildlog1.png?raw=true" width="60%" height="60%"> Please refer to [documentation](https://docs.stepsecurity.io/harden-runner/how-tos/enable-runtime-security) to find more details. </details> ### Keeping your actions up to date with Dependabot With Dependabot version updates, when Dependabot identifies an outdated dependency, it raises a pull request to update the manifest to the latest version of the dependency. This is recommended by GitHub as well as The Open Source Security Foundation (OpenSSF). - [GitHub Security Guide](https://docs.github.com/en/code-security/dependabot/working-with-dependabot/keeping-your-actions-up-to-date-with-dependabot) - [The Open Source Security Foundation (OpenSSF) Security Guide](https://github.com/ossf/scorecard/blob/main/docs/checks.md#dependency-update-tool) ### Secure Dockerfiles Pin image tags to digests in Dockerfiles. With the Docker v2 API release, it became possible to use digests in place of tags when pulling images or to use them in FROM lines in Dockerfiles. - [The Open Source Security Foundation (OpenSSF) Security Guide](https://github.com/ossf/scorecard/blob/main/docs/checks.md#pinned-dependencies) ### Add Dependency Review Workflow The Dependency Review Workflow enforces dependency reviews on your pull requests. The action scans for vulnerable versions of dependencies introduced by package version changes in pull requests, and warns you about the associated security vulnerabilities. This gives you better visibility of what's changing in a pull request, and helps prevent vulnerabilities being added to your repository. - [Github Guide about Dependency Review](https://docs.github.com/en/code-security/supply-chain-security/understanding-your-software-supply-chain/about-dependency-review) - [Github Guide for Configuring Dependency Review Action](https://docs.github.com/en/code-security/supply-chain-security/understanding-your-software-supply-chain/configuring-dependency-review#using-inline-configuration-to-set-up-the-dependency-review-action) ### Maintain Code Quality with Pre-Commit Pre-commit is a framework for managing and maintaining multi-language pre-commit hooks. Hooks can be any scripts, code, or binaries that run at any stage of the git workflow. Pre-commit hooks are useful for enforcing code quality, code formatting, and detecting security vulnerabilities. - [Official Pre-commit documentation](https://pre-commit.com/) - [Getting Started guide](https://pre-commit.com/#getting-started) ## Feedback For bug reports, feature requests, and general feedback; please email support@stepsecurity.io. To create such PRs, please visit https://app.stepsecurity.io/securerepo. Signed-off-by: StepSecurity Bot <bot@stepsecurity.io> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-03-03 14:30:50 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/hardening#361
No description provided.