Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
name: CI

permissions:
contents: read

on:
merge_group:
pull_request:
Expand Down
11 changes: 7 additions & 4 deletions .github/workflows/dependencies.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,17 @@
name: Dependencies

permissions:
contents: read

on:
pull_request:
paths:
- '**/Cargo.toml'
- 'deny.toml'
- "**/Cargo.toml"
- "deny.toml"
push:
paths:
- '**/Cargo.toml'
- 'deny.toml'
- "**/Cargo.toml"
- "deny.toml"
branches:
- main

Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/example-run-report.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,10 @@ jobs:
path: screenshots
- name: branch name
id: branch-name
env:
BRANCH_NAME: ${{ github.event.workflow_run.head_branch }}
run: |
echo "result=PR-$(cat PR)-${{ github.event.workflow_run.head_branch }}" >> $GITHUB_OUTPUT
echo "result=PR-$(cat PR)-$BRANCH_NAME" >> $GITHUB_OUTPUT
- name: PR number
id: pr-number
run: |
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/example-run.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
name: Example Run

permissions:
contents: read

on:
merge_group:
pull_request:
Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/send-screenshots-to-pixeleagle.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
name: Send Screenshots to Pixel Eagle

permissions:
contents: read

on:
workflow_call:
inputs:
Expand Down Expand Up @@ -45,9 +48,10 @@ jobs:
if: ${{ fromJSON(env.PIXELEAGLE_TOKEN_EXISTS) }}
env:
project: B04F67C0-C054-4A6F-92EC-F599FEC2FD1D
branch: ${{ inputs.branch }}
run: |
# Create a new run with its associated metadata
metadata='{"os":"${{ inputs.os }}", "commit": "${{ inputs.commit }}", "branch": "${{ inputs.branch }}"}'
metadata='{"os":"${{ inputs.os }}", "commit": "${{ inputs.commit }}", "branch": "$branch"}'
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Any particular reason why only one of these inputs was set into a variable and not the rest?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess codeQL was smart enough to notice it's the only one that comes from user input, all the others can be tracked to a value generated by GitHub and safe

run=`curl https://pixel-eagle.com/$project/runs --json "$metadata" --oauth2-bearer ${{ secrets.PIXELEAGLE_TOKEN }} | jq '.id'`

SAVEIFS=$IFS
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/update-caches.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
name: Update Actions Caches

permissions:
contents: read

on:
# Manually
workflow_dispatch:
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/validation-jobs.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
name: validation jobs

permissions:
contents: read

on:
merge_group:
pull_request:
Expand Down
10 changes: 6 additions & 4 deletions .github/workflows/weekly.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
name: Weekly beta compile test

permissions:
contents: read

on:
schedule:
# New versions of rust release on Thursdays. We test on Mondays to get at least 3 days of warning before all our CI breaks again.
# https://forge.rust-lang.org/release/process.html#release-day-thursday
- cron: '0 12 * * 1'
- cron: "0 12 * * 1"
workflow_dispatch:

env:
Expand Down Expand Up @@ -85,7 +88,7 @@ jobs:

close-any-open-issues:
runs-on: ubuntu-latest
needs: ['test', 'lint', 'check-compiles']
needs: ["test", "lint", "check-compiles"]
permissions:
issues: write
steps:
Expand All @@ -106,14 +109,13 @@ jobs:
COMMENT: |
[Last pipeline run](${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}) successfully completed. Closing issue.


open-issue:
name: Warn that weekly CI fails
runs-on: ubuntu-latest
needs: [test, lint, check-compiles]
permissions:
issues: write
# We disable this job on forks, because
# We disable this job on forks, because
# Use always() so the job doesn't get canceled if any other jobs fail
if: ${{ github.repository == 'bevyengine/bevy' && always() && contains(needs.*.result, 'failure') }}
steps:
Expand Down
Loading