Skip to content

Commit 204be69

Browse files
authored
🐛 fix: update release workflow - Merge pull request #5 from wgtechlabs/dev
2 parents 7801bab + f11ef35 commit 204be69

File tree

2 files changed

+13
-9
lines changed

2 files changed

+13
-9
lines changed

.github/workflows/release.yml

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -13,24 +13,27 @@ jobs:
1313
name: Build Production Images
1414
runs-on: ubuntu-latest
1515
if: startsWith(github.ref, 'refs/tags/')
16+
permissions:
17+
contents: read
18+
packages: write
1619

1720
steps:
1821
- name: Checkout code
1922
uses: actions/checkout@v4
2023

24+
- name: Login to Docker Hub
25+
uses: docker/login-action@v3
26+
with:
27+
username: ${{ secrets.DOCKER_HUB_USERNAME }}
28+
password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}
29+
2130
- name: Setup Docker Buildx
2231
uses: docker/setup-buildx-action@v3
2332
with:
2433
driver: cloud
2534
endpoint: "wgtechlabs/unthread-bot-builder"
2635
install: true
2736

28-
- name: Login to Docker Hub
29-
uses: docker/login-action@v3
30-
with:
31-
username: ${{ secrets.DOCKER_HUB_USERNAME }}
32-
password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}
33-
3437
- name: Login to GitHub Container Registry
3538
uses: docker/login-action@v3
3639
with:
@@ -91,19 +94,20 @@ jobs:
9194
org.opencontainers.image.source=${{ github.server_url }}/${{ github.repository }}
9295
org.opencontainers.image.url=${{ github.server_url }}/${{ github.repository }}
9396
org.opencontainers.image.licenses=GPL-3.0
94-
cache-from: type=gha
97+
cache-from: type=gha
9598
cache-to: type=gha,mode=max
9699

97100
- name: Run Trivy vulnerability scanner
98101
uses: aquasecurity/[email protected]
102+
continue-on-error: true
99103
with:
100104
image-ref: ${{ env.REGISTRY_DOCKERHUB }}:${{ steps.version.outputs.version }}
101105
format: 'sarif'
102106
output: 'trivy-results.sarif'
103107

104108
- name: Upload Trivy scan results to GitHub Security tab
105109
uses: github/codeql-action/upload-sarif@v3
106-
if: always()
110+
if: always() && hashFiles('trivy-results.sarif') != ''
107111
with:
108112
sarif_file: 'trivy-results.sarif'
109113

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "unthread-webhook-server",
3-
"version": "1.0.0-beta.2",
3+
"version": "1.0.0-beta.3",
44
"description": "A Node.js server application that receives webhook events from Unthread.io and queues them for processing.",
55
"license": "GPL-3.0",
66
"private": true,

0 commit comments

Comments
 (0)