File tree Expand file tree Collapse file tree 5 files changed +119
-13
lines changed
Expand file tree Collapse file tree 5 files changed +119
-13
lines changed Original file line number Diff line number Diff line change 1- b23aa64010d014befa5adc5bc54363b6fb60a3e4
1+ 2dd498656b9653c321e5d9a8600e6b506714acb3
Original file line number Diff line number Diff line change @@ -61,24 +61,15 @@ runs:
6161 id : set_arch
6262 shell : bash
6363 run : echo "ARCH=$(arch)" >> $GITHUB_ENV
64- # We often use Rust, so set up opinionated default caching
65- - name : Setup Rust cache
66- uses : Swatinem/rust-cache@v2
67- with :
68- cache-all-crates : true
69- # Only generate caches on push to git main
70- save-if : ${{ github.ref == 'refs/heads/main' }}
71- # Suppress actually using the cache for builds running from
72- # git main so that we avoid incremental compilation bugs
73- lookup-only : ${{ github.ref == 'refs/heads/main' }}
7464 # Install libvirt stack if requested
7565 - name : Install libvirt and virtualization stack
7666 if : ${{ inputs.libvirt == 'true' }}
7767 shell : bash
7868 run : |
7969 set -xeuo pipefail
80- export BCVK_VERSION=0.6.0
81- /bin/time -f '%E %C' sudo apt install -y libkrb5-dev pkg-config libvirt-dev genisoimage qemu-utils qemu-kvm virtiofsd libvirt-daemon-system
70+ export BCVK_VERSION=0.9.0
71+ # see https://github.com/bootc-dev/bcvk/issues/176
72+ /bin/time -f '%E %C' sudo apt install -y libkrb5-dev pkg-config libvirt-dev genisoimage qemu-utils qemu-kvm virtiofsd libvirt-daemon-system python3-virt-firmware
8273 # Something in the stack is overriding this, but we want session right now for bcvk
8374 echo LIBVIRT_DEFAULT_URI=qemu:///session >> $GITHUB_ENV
8475 td=$(mktemp -d)
Original file line number Diff line number Diff line change 1+ name : ' Setup Rust'
2+ description : ' Install Rust toolchain with caching and nextest'
3+ runs :
4+ using : ' composite'
5+ steps :
6+ - name : Install Rust toolchain
7+ uses : dtolnay/rust-toolchain@stable
8+ - name : Install nextest
9+ uses : taiki-e/install-action@v2
10+ with :
11+ tool : nextest
12+ - name : Setup Rust cache
13+ uses : Swatinem/rust-cache@v2
14+ with :
15+ cache-all-crates : true
16+ # Only generate caches on push to git main
17+ save-if : ${{ github.ref == 'refs/heads/main' }}
18+ # Suppress actually using the cache for builds running from
19+ # git main so that we avoid incremental compilation bugs
20+ lookup-only : ${{ github.ref == 'refs/heads/main' }}
Original file line number Diff line number Diff line change 1+ # Upstream https://github.com/ossf/scorecard/blob/main/.github/workflows/scorecard-analysis.yml
2+ # Tweaked to not pin actions by SHA digest as I think that's overkill noisy security theater.
3+ name : OpenSSF Scorecard analysis
4+ on :
5+ push :
6+ branches :
7+ - main
8+
9+ permissions : read-all
10+
11+ jobs :
12+ analysis :
13+ name : Scorecard analysis
14+ runs-on : ubuntu-24.04
15+ permissions :
16+ # Needed for Code scanning upload
17+ security-events : write
18+ # Needed for GitHub OIDC token if publish_results is true
19+ id-token : write
20+
21+ steps :
22+ - name : " Checkout code"
23+ uses : actions/checkout@v6
24+ with :
25+ persist-credentials : false
26+
27+ - name : " Run analysis"
28+ uses : ossf/scorecard-action@v2.4.3
29+ with :
30+ results_file : results.sarif
31+ results_format : sarif
32+ # Scorecard team runs a weekly scan of public GitHub repos,
33+ # see https://github.com/ossf/scorecard#public-data.
34+ # Setting `publish_results: true` helps us scale by leveraging your workflow to
35+ # extract the results instead of relying on our own infrastructure to run scans.
36+ # And it's free for you!
37+ publish_results : true
38+
39+ - name : " Upload artifact"
40+ uses : actions/upload-artifact@v6
41+ with :
42+ name : SARIF file
43+ path : results.sarif
44+ retention-days : 5
45+
46+ - name : " Upload to code-scanning"
47+ uses : github/codeql-action/upload-sarif@v4
48+ with :
49+ sarif_file : results.sarif
50+
Original file line number Diff line number Diff line change 1+ name : Automatic Rebase
2+ on :
3+ pull_request :
4+ types : [labeled]
5+
6+ permissions :
7+ contents : read
8+
9+ jobs :
10+ rebase :
11+ name : Rebase
12+ if : github.event.label.name == 'needs-rebase'
13+ runs-on : ubuntu-latest
14+ steps :
15+ - name : Generate Actions Token
16+ id : token
17+ uses : actions/create-github-app-token@v2
18+ with :
19+ app-id : ${{ secrets.APP_ID }}
20+ private-key : ${{ secrets.APP_PRIVATE_KEY }}
21+ owner : ${{ github.repository_owner }}
22+
23+ - name : Checkout
24+ uses : actions/checkout@v6
25+ with :
26+ token : ${{ steps.token.outputs.token }}
27+ fetch-depth : 0
28+
29+ - name : Automatic Rebase
30+ uses : peter-evans/rebase@v4
31+ with :
32+ token : ${{ steps.token.outputs.token }}
33+
34+ - name : Remove needs-rebase label
35+ if : always()
36+ uses : actions/github-script@v8
37+ with :
38+ github-token : ${{ steps.token.outputs.token }}
39+ script : |
40+ await github.rest.issues.removeLabel({
41+ owner: context.repo.owner,
42+ repo: context.repo.repo,
43+ issue_number: context.issue.number,
44+ name: 'needs-rebase'
45+ });
You can’t perform that action at this time.
0 commit comments