Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enhance action.yml with collapsible logs and warnings +semver: minor #33

Merged
merged 1 commit into from
Sep 15, 2024
Merged
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
34 changes: 20 additions & 14 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -113,10 +113,13 @@ runs:
message: |
**Infisical secrets check:** ✅ No secrets leaked!

**Scan results:**
```
${{ steps.log.outputs.contents }}
```
<details>
<summary>💻 Scan logs</summary>

```txt
${{ steps.log.outputs.contents }}
```
</details>

- name: Update PR with comment (failure)
uses: mshick/add-pr-comment@v2
Expand All @@ -132,10 +135,13 @@ runs:
> Please review the scan results and take the necessary actions.
> Secrets found: ${{ steps.count.outputs.secrets-leaked }}

**Scan results:**
```
${{ steps.log.outputs.contents }}
```
<details>
<summary>💻 Scan logs</summary>

```txt
${{ steps.log.outputs.contents }}
```
</details>

---

Expand All @@ -145,6 +151,12 @@ runs:
${{ steps.report.outputs.contents }}
</details>

> [!WARNING]
> The above table only displays the first 10 leaked secrets.
> You can find the full report here: [secrets.csv](${{ steps.secrets.outputs.artifact-url }})

---

<details>
<summary>🐾 Secrets fingerprint</summary>

Expand All @@ -153,12 +165,6 @@ runs:
```
</details>

---

> [!WARNING]
> The above table only displays the first 10 leaked secrets.
> You can find the full report here: [secrets.csv](${{ steps.secrets.outputs.artifact-url }})

> [!TIP]
> If you want to ignore these leaked secrets, add the above **fingerprint** content to a file named `.infisicalignore` at the repository root level.

Expand Down