Skip to content

Commit

Permalink
Merge pull request #168 from semgrep/austin/bump
Browse files Browse the repository at this point in the history
Update package.json
  • Loading branch information
ajbt200128 authored Sep 4, 2024
2 parents 4b9ebba + da6f755 commit 5239c0e
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 4 deletions.
7 changes: 6 additions & 1 deletion .github/workflows/bump_version.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
contents: write
pull-requests: write
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Update version
env:
SEMGREP_STATIC_VERSION: "release-${{ inputs.version }}"
Expand All @@ -26,6 +26,10 @@ jobs:
exit 1
fi
echo "${SEMGREP_STATIC_VERSION}" > semgrep-version
- uses: actions/[email protected]
with:
node-version: lts/*
- run: npm ci
- name: Commit and push
id: commit
env:
Expand All @@ -39,6 +43,7 @@ jobs:
BRANCH="gha/bump-version-${NEW_SEMGREP_VERSION}-${GITHUB_RUN_ID}-${GITHUB_RUN_ATTEMPT}"
SUBJECT="Bump semgrep to ${NEW_SEMGREP_VERSION}"
git checkout -b "${BRANCH}"
npm version patch
git add .
git commit -m "${SUBJECT}"
git push --set-upstream origin "${BRANCH}"
Expand Down
3 changes: 2 additions & 1 deletion download-osemgrep-pro.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ case "${uname}" in
*) machine=manylinux;;
esac
# NOT the same as the semgrep version!!!!
OSEMGREP_PRO_VERSION=$(cat ./osemgrep-pro-version)
release_char_count=$(echo "release-" | wc -c)
OSEMGREP_PRO_VERSION=$(cat ./semgrep-version | cut -c $((release_char_count))-)
BINARY=semgrep-core-proprietary-${machine}-${OSEMGREP_PRO_VERSION}
# Check if osemgrep-pro exists and if its a symlink then exit
if [ -L dist/osemgrep-pro ]; then
Expand Down
1 change: 0 additions & 1 deletion osemgrep-pro-version

This file was deleted.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "semgrep",
"displayName": "Semgrep",
"description": "Security scans in a snap. Speedy SAST with a powerful rule registry for seamless detection and remediation of code vulnerabilities with each save.",
"version": "1.9.0",
"version": "1.9.1",
"engines": {
"vscode": "^1.86.0"
},
Expand Down

0 comments on commit 5239c0e

Please sign in to comment.