Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 16 additions & 5 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,13 @@ on:
- '5.0/**'
- 'docker/**'
- 'Makefile'
- '.github/workflows/main.yml'
pull_request:
paths:
- '5.0/**'
- 'docker/**'
- 'Makefile'
- '.github/workflows/main.yml'

jobs:
build:
Expand Down Expand Up @@ -53,7 +55,7 @@ jobs:
run: |
LATEST_TAG=$(curl -s https://api.github.com/repos/${{ github.repository }}/releases/latest | jq -r .tag_name)
Comment thread
JeffreyShran marked this conversation as resolved.
if [ -z "$LATEST_TAG" ] || [ "$LATEST_TAG" == "null" ]; then
LATEST_TAG="v5.0.0"
LATEST_TAG=""
fi
echo "LATEST_TAG=$LATEST_TAG" >> $GITHUB_ENV

Expand All @@ -62,10 +64,19 @@ jobs:
if: github.event_name == 'push'
run: |
LATEST_TAG=${{ env.LATEST_TAG }}
LATEST_VERSION=${LATEST_TAG#v}
IFS='.' read -r major minor patch <<< "$LATEST_VERSION"
NEW_VERSION="$major.$minor.$((patch + 1))"
NEW_TAG="v$NEW_VERSION"

# TCASVS release line is anchored to ASVS-style v5.x tags.
# Ignore legacy TASVS tags (for example v1.8.x) when deriving the next tag.
if [[ "$LATEST_TAG" =~ ^v5\.([0-9]+)\.([0-9]+)$ ]]; then
major=5
minor=${BASH_REMATCH[1]}
patch=${BASH_REMATCH[2]}
NEW_VERSION="$major.$minor.$((patch + 1))"
NEW_TAG="v$NEW_VERSION"
else
NEW_TAG="v5.0.0"
fi

echo "NEW_TAG=$NEW_TAG" >> $GITHUB_ENV

- name: Create GitHub Release
Expand Down
2 changes: 1 addition & 1 deletion index.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,6 @@ The OWASP TCASVS would like to thank all of our [contributors](https://github.co
</a>
</p>

**Bentley is the leading provider of infrastructure engineering software, advancing infrastructure for better quality of life and sustainability.**
**Bentley Systems is the leading provider of infrastructure engineering software, advancing infrastructure for better quality of life and sustainability.**

Visit [bentley.com](https://www.bentley.com/company/about-us/) to learn more.
Loading