Skip to content

v0.3.1 - Security update#22

Merged
IanSkelskey merged 4 commits intomainfrom
dev
Jun 26, 2025
Merged

v0.3.1 - Security update#22
IanSkelskey merged 4 commits intomainfrom
dev

Conversation

@IanSkelskey
Copy link
Copy Markdown
Owner

This pull request introduces changes to GitHub Actions workflows to adjust permissions for various jobs and includes a bug fix in the src/util/git.ts file to improve commit message sanitization.

Workflow permissions updates:

  • .github/workflows/format.yml: Added contents: write and pull-requests: write permissions to enable the workflow to modify repository contents and interact with pull requests.
  • .github/workflows/pre-publish.yml: Added contents: read permissions to the on section and contents: read and actions: write permissions to the test job to support artifact uploads. [1] [2]
  • .github/workflows/publish.yml: Added contents: read permissions to allow the workflow to read repository contents.

Bug fix in commit message sanitization:

  • src/util/git.ts: Updated the sanitizeCommitMessage function to first escape backslashes before escaping double quotes, ensuring proper handling of special characters in commit messages.

Update sanitizeCommitMessage() to properly escape backslashes before escaping double quotes. Ensures commit messages with both characters are handled correctly when passed to git commands.

Release-Note: properly escapes backslashes and double quotes in commit messages to prevent malformed input to git

Signed-off-by: Ian Skelskey <[email protected]>
- Sets explicit permissions in format.yml, pre-publish.yml, and publish.yml workflows
- Grants write permissions for contents and pull-requests in format.yml for better automation support
- Restricts pre-publish.yml and publish.yml to read-only contents access for security
- Grants actions: write permission to the test job in pre-publish.yml to enable artifact uploads

Release-Note: add and clarify GitHub Actions workflow permissions for improved security and functionality

Signed-off-by: Ian Skelskey <[email protected]>
- Bump version from 0.3.0 to 0.3.1 in package.json, README.md, and main.ts.
- Update CHANGELOG.md with summary of changes for 0.3.1.
- Minor cleanup: remove unnecessary space from pre-publish.yml permissions.
- No functional code changes introduced (version bump and documentation only).

Release-Note: release version 0.3.1 with updated security permissions in workflows and commit message sanitizer fix

Signed-off-by: Ian Skelskey <[email protected]>
@IanSkelskey IanSkelskey merged commit 7720229 into main Jun 26, 2025
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant