Skip to content
Closed
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
4 changes: 2 additions & 2 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,17 +25,17 @@

steps:
- name: Cancel previous workflow
uses: styfle/cancel-workflow-action@0.11.0

Check failure on line 28 in .github/workflows/docker.yml

View check run for this annotation

SonarQubeCloud / SonarCloud Code Analysis

Use full commit SHA hash for this dependency.

See more on https://sonarcloud.io/project/issues?id=hatamiarash7_WebhookHandler&issues=AZ7cljOQZMwa4mF466it&open=AZ7cljOQZMwa4mF466it&pullRequest=46
with:
access_token: ${{ github.token }}

- uses: actions/checkout@v3
- uses: actions/checkout@v6

- name: Build image
run: docker build -t test .

- name: Trivy
uses: aquasecurity/trivy-action@master

Check failure on line 38 in .github/workflows/docker.yml

View check run for this annotation

SonarQubeCloud / SonarCloud Code Analysis

Use full commit SHA hash for this dependency.

See more on https://sonarcloud.io/project/issues?id=hatamiarash7_WebhookHandler&issues=AZ7cljORZMwa4mF466iu&open=AZ7cljORZMwa4mF466iu&pullRequest=46
with:
image-ref: test
format: "template"
Expand All @@ -48,7 +48,7 @@
sarif_file: "trivy-results.sarif"

- name: Lint Docker files
uses: hadolint/hadolint-action@v2.1.0

Check failure on line 51 in .github/workflows/docker.yml

View check run for this annotation

SonarQubeCloud / SonarCloud Code Analysis

Use full commit SHA hash for this dependency.

See more on https://sonarcloud.io/project/issues?id=hatamiarash7_WebhookHandler&issues=AZ7cljORZMwa4mF466iv&open=AZ7cljORZMwa4mF466iv&pullRequest=46
with:
verbose: true
ignore: "DL3008,DL3025"
Expand All @@ -62,11 +62,11 @@

steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v6

- name: Create image name
id: github-image
uses: ASzc/change-string-case-action@v4

Check failure on line 69 in .github/workflows/docker.yml

View check run for this annotation

SonarQubeCloud / SonarCloud Code Analysis

Use full commit SHA hash for this dependency.

See more on https://sonarcloud.io/project/issues?id=hatamiarash7_WebhookHandler&issues=AZ7cljORZMwa4mF466iw&open=AZ7cljORZMwa4mF466iw&pullRequest=46
with:
string: ghcr.io/${{ env.GITHUB_IMAGE_NAME }}

Expand All @@ -85,10 +85,10 @@

- name: Push to Dockerhub
run: |
docker login -u hatamiarash7 -p "${{ secrets.DOCKERHUB_TOKEN }}"

Check warning on line 88 in .github/workflows/docker.yml

View check run for this annotation

SonarQubeCloud / SonarCloud Code Analysis

Avoid expanding secrets in a run block.

See more on https://sonarcloud.io/project/issues?id=hatamiarash7_WebhookHandler&issues=AZ7cljOQZMwa4mF466ir&open=AZ7cljOQZMwa4mF466ir&pullRequest=46
docker push ${{ env.IMAGE_NAME }}

- name: Push to Github
run: |
docker login -u hatamiarash7 -p "${{ secrets.GB_TOKEN }}" ghcr.io

Check warning on line 93 in .github/workflows/docker.yml

View check run for this annotation

SonarQubeCloud / SonarCloud Code Analysis

Avoid expanding secrets in a run block.

See more on https://sonarcloud.io/project/issues?id=hatamiarash7_WebhookHandler&issues=AZ7cljOQZMwa4mF466is&open=AZ7cljOQZMwa4mF466is&pullRequest=46
docker push ${{ steps.github-image.outputs.lowercase }}
Loading