mirror of
https://github.com/appleboy/drone-scp.git
synced 2026-06-04 10:15:05 +08:00
ci(bearer): enhance security with Bearer GitHub Action integration
- Add Bearer GitHub Action to scan for sensitive data in the codebase, configured to only scan changes in the current pull request or commit Signed-off-by: appleboy <appleboy.tw@gmail.com>
This commit is contained in:
@@ -28,6 +28,15 @@ jobs:
|
||||
with:
|
||||
dockerfile: docker/Dockerfile
|
||||
|
||||
# This step uses the Bearer GitHub Action to scan for sensitive data in the codebase.
|
||||
# The 'uses' keyword specifies the action to be used, in this case, 'bearer/bearer-action' at version 'v2'.
|
||||
# The 'with' keyword provides input parameters for the action:
|
||||
# - 'diff: true' indicates that the action should only scan the changes in the current pull request or commit.
|
||||
- name: Bearer
|
||||
uses: bearer/bearer-action@v2
|
||||
with:
|
||||
diff: true
|
||||
|
||||
testing:
|
||||
runs-on: ubuntu-latest
|
||||
container: golang:1.22-alpine
|
||||
|
||||
Reference in New Issue
Block a user