mitre / heimdall2

Heimdall Enterprise Server 2 lets you view, store, and compare automated security control scan results.
Other
206 stars 61 forks source link

Fully implement Sophos Factory -> Ironbank pipeline #4373

Open Amndeep7 opened 1 year ago

Amndeep7 commented 1 year ago
Amndeep7 commented 1 year ago

so we don't lose it

      - name: Get release tags
        shell: bash
        id: get-release-version
        run: |
          RELEASE_VERSION=$(git describe --abbrev=0 --tags | sed 's/v//')
          if [[ "$RELEASE_VERSION" =~ ^[[:digit:]]+\.[[:digit:]]+\.[[:digit:]]+$ ]]; then
            echo "RELEASE_VERSION=$RELEASE_VERSION" >> $GITHUB_ENV
          else
            echo "Release version $RELEASE_VERSION does not match expected regex"
            exit 1
          fi