-
Notifications
You must be signed in to change notification settings - Fork 1.7k
[Infra] Restore Danger #15638
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
Merged
+45
−45
Merged
[Infra] Restore Danger #15638
Changes from all commits
Commits
Show all changes
20 commits
Select commit
Hold shift + click to select a range
358815e
[Infra] Update danger tool version
paulb777 d8836d8
Test tagging
paulb777 c1b4235
Update danger action permissions
paulb777 a1a9a71
use default GITHUB_TOKEN
paulb777 05ec5dd
Update GitHub api call
paulb777 f0b1ae9
pull_request_target
paulb777 5881eaa
touch
paulb777 2753a48
update checkout sha
paulb777 2c58f02
restore
paulb777 2d9d4ad
back to safer pull_request
paulb777 48ee7d2
ruby syntax
paulb777 2b13e54
ruby arggh
paulb777 e7f5284
Using new fine-grained token
paulb777 5f1b0a6
Another approach
paulb777 7fe10c6
Trigger another label
paulb777 d528755
indentation
paulb777 ed101dc
Restore trigger files
paulb777 0be6765
Test changelog trigger
paulb777 752005a
Try again
paulb777 25fcd7f
Successfully tagged
paulb777 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,20 +1,36 @@ | ||
| name: danger | ||
|
|
||
| on: [pull_request, workflow_dispatch] | ||
| on: | ||
| pull_request: | ||
| types: [opened, synchronize, reopened] | ||
| workflow_dispatch: | ||
|
|
||
| concurrency: | ||
| group: ${{ github.workflow }}-${{ github.head_ref || github.ref }} | ||
| cancel-in-progress: true | ||
|
|
||
| jobs: | ||
| danger: | ||
| runs-on: macos-14 | ||
| runs-on: macos-15 | ||
| permissions: | ||
| issues: write | ||
| pull-requests: write | ||
| contents: read # Required to read the Dangerfile | ||
| steps: | ||
| - uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1 | ||
|
|
||
| - name: Generate GitHub App Token | ||
| id: generate-token | ||
| uses: actions/create-github-app-token@29824e69f54612133e76f7eaac726eef6c875baf #v2.2.1 | ||
| with: | ||
| app-id: ${{ secrets.DANGER_APP_ID }} | ||
| private-key: ${{ secrets.DANGER_APP_PRIVATE_KEY }} | ||
|
|
||
| - uses: ruby/setup-ruby@354a1ad156761f5ee2b7b13fa8e09943a5e8d252 # v1 | ||
| - name: Setup Bundler | ||
| run: scripts/setup_bundler.sh | ||
|
|
||
| - name: Danger | ||
| env: | ||
| DANGER_GITHUB_API_TOKEN: ${{ secrets.DangerGitHubAPIToken }} | ||
| DANGER_GITHUB_API_TOKEN: ${{ steps.generate-token.outputs.token }} | ||
| run: '[ ! -z $DANGER_GITHUB_API_TOKEN ] && bundle exec danger || echo "Skipping Danger for External Contributor"' |
This file contains hidden or 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 file contains hidden or 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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.