-
Notifications
You must be signed in to change notification settings - Fork 176
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Replace panther_analysis_tool import with updated import (#1230) * Update Action versions; use SHAs (#1231) * Update Action versions; use SHAs * Add dependabot.yml to keep Actions updated * Update PAT to 0.49.0
- Loading branch information
Evan Gibler
authored
May 7, 2024
1 parent
7db47bd
commit f1697c0
Showing
11 changed files
with
208 additions
and
210 deletions.
There are no files selected for viewing
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 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 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 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 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,7 +15,7 @@ jobs: | |
github.repository != 'panther-labs/panther-analysis' | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/github-script@v7 | ||
- uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea #v7.0.1 | ||
id: set_upstream | ||
name: Check Upstream | ||
with: | ||
|
@@ -29,22 +29,22 @@ jobs: | |
process.env['GITHUB_OUTPUT'], | ||
'latest-release=' + upstreamLatest.data.tag_name + '\n'); | ||
## CREATE A BRANCH | ||
- uses: peterjgrainger/[email protected] | ||
- uses: peterjgrainger/action-create-branch@10c7d268152480ae859347db45dc69086cef1d9c #v3.0.0 | ||
id: create_a_branch | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
branch: "sync_upstream_${{steps.set_upstream.outputs.latest-release}}" | ||
# Checkout this repo into the branch | ||
- name: Checkout your local repo in PR branch | ||
uses: actions/checkout@v4 | ||
uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b #v4.1.4 | ||
with: | ||
ref: "sync_upstream_${{steps.set_upstream.outputs.latest-release}}" | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
# Sync this branch with upstream | ||
- name: Sync upstream changes into PR branch | ||
id: sync | ||
uses: aormsby/[email protected] | ||
uses: aormsby/Fork-Sync-With-Upstream-action@1090e365224fc834e7e1de521c417ded2d6fcb53 #v3.4.1 | ||
with: | ||
# target_sync_branch == the branch in your fork that you want to sync to upstream | ||
target_sync_branch: "sync_upstream_${{steps.set_upstream.outputs.latest-release}}" | ||
|
@@ -58,7 +58,7 @@ jobs: | |
#test_mode: true | ||
upstream_pull_args: "--allow-unrelated-histories" | ||
# Create a PR from this branch back to this fork's primary branch | ||
- uses: actions/github-script@v7 | ||
- uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea #v7.0.1 | ||
id: create_pr | ||
name: Create a PR to bring upstream changes into the local repo primary branch | ||
if: steps.sync.outputs.has_new_commits == 'true' | ||
|
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 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 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
Oops, something went wrong.