Skip to content

Commit

Permalink
remove uploading sbom to interlynk
Browse files Browse the repository at this point in the history
Signed-off-by: Vivek Kumar Sahu <vivekkumarsahu650@gmail.com>
  • Loading branch information
viveksahu26 committed Sep 9, 2024
1 parent ed07be0 commit d86c894
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 20 deletions.
22 changes: 2 additions & 20 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,6 @@ jobs:
- name: Get Tag
id: get_tag
run: echo "LATEST_TAG=$(git describe --tags --abbrev=0 2>/dev/null || echo 'v0.0.1')" >> $GITHUB_ENV

- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.x" # Specify the Python version needed

- name: Goreleaser
uses: goreleaser/goreleaser-action@v4
Expand All @@ -52,25 +47,12 @@ jobs:

- run: go version
- run: goreleaser -v

- name: Releaser
run: make release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Checkout Python SBOM tool
run: |
git clone https://github.com/interlynk-io/pylynk.git ${{ env.PYLYNK_TEMP_DIR }}
cd ${{ env.PYLYNK_TEMP_DIR }}
git fetch --tags
latest_tag=$(git describe --tags `git rev-list --tags --max-count=1`)
git checkout $latest_tag
echo "Checked out pylynk at tag: $latest_tag"
- name: Install Python dependencies
run: |
cd ${{ env.PYLYNK_TEMP_DIR }}
pip install -r requirements.txt
- name: Generate SBOM
shell: bash
run: |
Expand All @@ -87,7 +69,7 @@ jobs:
with:
upload_url: ${{ github.event.release.upload_url }}
asset_path: ${{ env.SBOM_FILE_PATH }}
asset_name: sbomasm.sbom.spdx.json
asset_name: sbomasm-${{ env.LATEST_TAG }}.sbom.spdx.json
asset_content_type: application/json
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2 changes: 2 additions & 0 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
project_name: sbomasm

version: 2

env:
- GO111MODULE=on

Expand Down

0 comments on commit d86c894

Please sign in to comment.