Skip to content

Commit

Permalink
Fix alignment
Browse files Browse the repository at this point in the history
  • Loading branch information
egon-okerman-sonarsource committed Sep 19, 2023
1 parent 4c87fef commit d083e44
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions rules/S6782/secrets/rule.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -31,23 +31,23 @@ include::../../../shared_content/secrets/fix/vault.adoc[]
[source,yaml,diff-id=1,diff-type=noncompliant]
----
steps:
- name: Login to DockerHub
- name: Login to DockerHub
uses: docker/login-action@v2
with:
username: mobythewhale
password: dckr_pat_cq7wQZcv9xZkVlxMhDTcTV00CDo
username: mobythewhale
password: dckr_pat_cq7wQZcv9xZkVlxMhDTcTV00CDo
----

==== Compliant solution

[source,yaml,diff-id=1,diff-type=compliant]
----
steps:
- name: Login to DockerHub
- name: Login to DockerHub
uses: docker/login-action@v2
with:
username: ${{ secrets.dockerUsername }}
password: ${{ secrets.dockerAccessToken }}
username: ${{ secrets.dockerUsername }}
password: ${{ secrets.dockerAccessToken }}
----

//=== How does this work?
Expand Down

0 comments on commit d083e44

Please sign in to comment.