[PR #85] [CLOSED] [StepSecurity] Apply security best practices #84

Closed
opened 2026-03-02 02:26:34 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/AppacYazilim/zamanejs/pull/85
Author: @step-security-bot
Created: 7/2/2024
Status: Closed

Base: mainHead: stepsecurity_remediation_1719878558


📝 Commits (1)

  • 2e7884a [StepSecurity] Apply security best practices

📊 Changes

11 files changed (+105 additions, -21 deletions)

View changed files

📝 .github/dependabot.yml (+5 -0)
📝 .github/workflows/build.yml (+10 -2)
📝 .github/workflows/codeql.yml (+12 -4)
📝 .github/workflows/coverage.yml (+7 -2)
📝 .github/workflows/dependency-review.yml (+7 -2)
📝 .github/workflows/lint.yml (+11 -3)
📝 .github/workflows/release.yml (+7 -2)
📝 .github/workflows/scorecard.yml (+5 -0)
📝 .github/workflows/tests.yml (+17 -4)
📝 .github/workflows/typechecks.yml (+10 -2)
.pre-commit-config.yaml (+14 -0)

📄 Description

Summary

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

Security Fixes

Least Privileged GitHub Actions Token Permissions

The GITHUB_TOKEN is an automatically generated secret to make authenticated calls to the GitHub API. GitHub recommends setting minimum token permissions for the GITHUB_TOKEN.

Pinned Dependencies

GitHub Action tags and Docker tags are mutable. This poses a security risk. GitHub's Security Hardening guide recommends pinning actions to full length commit.

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).

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/AppacYazilim/zamanejs/pull/85 **Author:** [@step-security-bot](https://github.com/step-security-bot) **Created:** 7/2/2024 **Status:** ❌ Closed **Base:** `main` ← **Head:** `stepsecurity_remediation_1719878558` --- ### 📝 Commits (1) - [`2e7884a`](https://github.com/AppacYazilim/zamanejs/commit/2e7884a692747ecfde0795b4923fbb8bc28364ac) [StepSecurity] Apply security best practices ### 📊 Changes **11 files changed** (+105 additions, -21 deletions) <details> <summary>View changed files</summary> 📝 `.github/dependabot.yml` (+5 -0) 📝 `.github/workflows/build.yml` (+10 -2) 📝 `.github/workflows/codeql.yml` (+12 -4) 📝 `.github/workflows/coverage.yml` (+7 -2) 📝 `.github/workflows/dependency-review.yml` (+7 -2) 📝 `.github/workflows/lint.yml` (+11 -3) 📝 `.github/workflows/release.yml` (+7 -2) 📝 `.github/workflows/scorecard.yml` (+5 -0) 📝 `.github/workflows/tests.yml` (+17 -4) 📝 `.github/workflows/typechecks.yml` (+10 -2) ➕ `.pre-commit-config.yaml` (+14 -0) </details> ### 📄 Description ## Summary This pull request is created by [StepSecurity](https://app.stepsecurity.io/securerepo) at the request of @mehmeteminkartal. Please merge the Pull Request to incorporate the requested changes. Please tag @mehmeteminkartal on your message if you have any questions related to the PR. ## Security Fixes ### Least Privileged GitHub Actions Token Permissions The GITHUB_TOKEN is an automatically generated secret to make authenticated calls to the GitHub API. GitHub recommends setting minimum token permissions for the GITHUB_TOKEN. - [GitHub Security Guide](https://docs.github.com/en/actions/security-guides/automatic-token-authentication#using-the-github_token-in-a-workflow) - [The Open Source Security Foundation (OpenSSF) Security Guide](https://github.com/ossf/scorecard/blob/main/docs/checks.md#token-permissions) ### Pinned Dependencies GitHub Action tags and Docker tags are mutable. This poses a security risk. GitHub's Security Hardening guide recommends pinning actions to full length commit. - [GitHub Security Guide](https://docs.github.com/en/actions/security-guides/security-hardening-for-github-actions#using-third-party-actions) - [The Open Source Security Foundation (OpenSSF) Security Guide](https://github.com/ossf/scorecard/blob/main/docs/checks.md#pinned-dependencies) ### 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) ### 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-02 02:26:34 +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/zamanejs#84
No description provided.