-
Notifications
You must be signed in to change notification settings - Fork 192
38 lines (30 loc) · 1.24 KB
/
check_for_secrets.yml
File metadata and controls
38 lines (30 loc) · 1.24 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# check_for_secrets.yml/Open GoPro, Version 2.0 (C) Copyright 2021 GoPro, Inc. (http://gopro.com/OpenGoPro).
# This copyright was auto-generated on Wed, Dev 6, 2023 5:05:35 PM
name: Check for Secrets
# This is only intended to be run from the internal repo.
on:
workflow_dispatch:
pull_request:
jobs:
checkSecrets:
name: Check for Leaked Secrets
runs-on: ubuntu-latest
steps:
- name: Checkout source branch
uses: actions/checkout@v5
- name: Log in to the Container registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Setup the secretchecker image
run: docker pull ghcr.io/gopro/opengopro-staging/gpdocchecker:docs
- name: Check for secrets
run: MSYS_NO_PATHCONV=1 docker run --volume .:/docs ghcr.io/gopro/opengopro-staging/gpdocchecker:docs secretchecker
- name: Write failure report
if: failure()
run: |
ls -la
cat ./report.md
cat ./report.md > $GITHUB_STEP_SUMMARY