Skip to content

Instantly share code, notes, and snippets.

@ardydedase
Last active May 15, 2022 15:45
Show Gist options
  • Save ardydedase/469e56097c311b633015ba16cce76dfa to your computer and use it in GitHub Desktop.
Save ardydedase/469e56097c311b633015ba16cce76dfa to your computer and use it in GitHub Desktop.
steps:
- name: node:16
env:
- 'DANGER_MANUAL_CI=CloudBuild'
- 'DANGER_MANUAL_GH_REPO=ardydedase/danger-example'
args:
- '-c'
- |
echo "Running Danger build..."
npm install
# PR number is hardcoded for local testing
DANGER_MANUAL_PR_NUM=$_PR_NUMBER node_modules/danger/distribution/commands/danger-ci.js
id: danger-code-review
waitFor:
- '-'
entrypoint: bash
secretEnv:
- DANGER_GITHUB_API_TOKEN
availableSecrets:
secretManager:
- versionName: projects/$PROJECT_ID/secrets/<my-github-token-key>/versions/1
env: DANGER_GITHUB_API_TOKEN
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment