upload also on fail #8
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This workflow will upload a Python Package using Twine when the repository | |
# is published. If the reference to the published version contains the text | |
# "-test," then it will be published to Test PyPi, otherwise to prod. | |
# | |
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python#publishing-to-package-registries | |
# This workflow uses actions that are not certified by GitHub. | |
# They are provided by a third-party and are governed by | |
# separate terms of service, privacy policy, and support | |
# documentation. | |
name: Check pull requests | |
on: | |
# pull_request: this will be what we use eventually | |
push: | |
branches: | |
- "safety-tooling" # for testing | |
jobs: | |
test-for-secrets: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Scan for secrets | |
run: | | |
docker run --rm -v "$PWD:/pwd" ghcr.io/trufflesecurity/trufflehog:latest \ | |
filesystem /pwd/Integrations/ --fail > trufflehog.txt | |
- name: Save Results | |
uses: actions/upload-artifact@v3 | |
with: | |
name: trufflehog | |
path: trufflehog.txt | |
if-no-files-found: error | |
if: always() | |
continue-on-error: true |