Skip to content

Commit

Permalink
Merge branch 'benches/various-sbor-benches' into refactor/use-sbor-ra…
Browse files Browse the repository at this point in the history
…w-value-in-engine
  • Loading branch information
dhedey committed Aug 7, 2024
2 parents ee53e66 + 9141df7 commit 6c066ac
Show file tree
Hide file tree
Showing 176 changed files with 8,636 additions and 4,722 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -315,9 +315,9 @@ jobs:
workspaces: radix-clis
- name: Install rustc 1.81.0-nightly
run: |
rustup toolchain install nightly-2024-06-28
rustup target add wasm32-unknown-unknown --toolchain nightly-2024-06-28
rustup default nightly-2024-06-28
rustup toolchain install nightly-2024-07-18
rustup target add wasm32-unknown-unknown --toolchain nightly-2024-07-18
rustup default nightly-2024-07-18
rustup show
- name: Install LLVM 18
run: |
Expand Down
31 changes: 25 additions & 6 deletions .github/workflows/phylum-daily-analysis.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,13 @@ name: Daily Analysis Phylum

on:
schedule:
# Runs at 14:00 UTC every day
- cron: '0 14 * * *'
# Runs at 13:00 UTC every day
- cron: '0 13 * * *'

env:
PHYLUM_PROJECT_ID: 851c8804-e9f6-423c-be8e-c529d22f4abd
PHYLUM_GROUP_NAME: Protocol
PHYLUM_NAME: radixdlt-scrypto
jobs:
analyze_branch_phylum:
name: Analyze dependencies with Phylum
Expand Down Expand Up @@ -37,10 +42,24 @@ jobs:
- name: Run Phylum Analysis
env:
PHYLUM_API_KEY: ${{ secrets.PHYLUM_API_KEY }}
run: phylum analyze --quiet --label ${{ matrix.branch }}_branch_daily_schedule > /dev/null 2>&1 ||
if [ $? -eq 100 ]; then
echo "Phylum Analysis returned exit code 100, but continuing.";
run: |
phylum analyze --quiet --label ${{ matrix.branch }}_branch_daily_schedule > /dev/null 2>&1 || exit_code=$?
if [ $exit_code -eq 100 ]; then
echo "Phylum Analysis returned exit code 100, but continuing.";
echo "phylum_analyze_status=failure" >> $GITHUB_ENV
exit 0;
else
echo "phylum_analyze_status=success" >> $GITHUB_ENV
exit $?;
fi
fi
- name: Analysis Status Failure notification
if: always()
uses: RDXWorks-actions/notify-slack-action@master
with:
status: ${{ env.phylum_analyze_status }}
notify_when: 'failure'
notification_title: ':clock3: Phylum Scheduled Daily Analysis:'
message_format: 'Automatic phylum analysis has found vulnerabilities on ${{ env.PHYLUM_NAME }} in ${{ matrix.branch }} branch:boom:'
footer: "Linked Repository <{repo_url}|{repo}> | <https://app.phylum.io/projects/${{ env.PHYLUM_PROJECT_ID }}?label=${{ matrix.branch }}_branch_daily_schedule&group=${{ env.PHYLUM_GROUP_NAME }}|View Report> "
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_PHYLUM_PROTOCOL_TEAM_WEBHOOK }}
Loading

0 comments on commit 6c066ac

Please sign in to comment.