Hex Artifact Content
Logged in as anonymous

Artifact 44ae3973c1768ab50c8797f7044cf3dce6dbc82c9e0f32304f3bdce313b783c9:


0000: 23 20 54 68 69 73 20 77 6f 72 6b 66 6c 6f 77 20  # This workflow 
0010: 75 73 65 73 20 61 63 74 69 6f 6e 73 20 74 68 61  uses actions tha
0020: 74 20 61 72 65 20 6e 6f 74 20 63 65 72 74 69 66  t are not certif
0030: 69 65 64 20 62 79 20 47 69 74 48 75 62 2e 0a 23  ied by GitHub..#
0040: 20 54 68 65 79 20 61 72 65 20 70 72 6f 76 69 64   They are provid
0050: 65 64 20 62 79 20 61 20 74 68 69 72 64 2d 70 61  ed by a third-pa
0060: 72 74 79 20 61 6e 64 20 61 72 65 20 67 6f 76 65  rty and are gove
0070: 72 6e 65 64 20 62 79 0a 23 20 73 65 70 61 72 61  rned by.# separa
0080: 74 65 20 74 65 72 6d 73 20 6f 66 20 73 65 72 76  te terms of serv
0090: 69 63 65 2c 20 70 72 69 76 61 63 79 20 70 6f 6c  ice, privacy pol
00a0: 69 63 79 2c 20 61 6e 64 20 73 75 70 70 6f 72 74  icy, and support
00b0: 0a 23 20 64 6f 63 75 6d 65 6e 74 61 74 69 6f 6e  .# documentation
00c0: 2e 0a 23 20 72 75 73 74 2d 63 6c 69 70 70 79 20  ..# rust-clippy 
00d0: 69 73 20 61 20 74 6f 6f 6c 20 74 68 61 74 20 72  is a tool that r
00e0: 75 6e 73 20 61 20 62 75 6e 63 68 20 6f 66 20 6c  uns a bunch of l
00f0: 69 6e 74 73 20 74 6f 20 63 61 74 63 68 20 63 6f  ints to catch co
0100: 6d 6d 6f 6e 0a 23 20 6d 69 73 74 61 6b 65 73 20  mmon.# mistakes 
0110: 69 6e 20 79 6f 75 72 20 52 75 73 74 20 63 6f 64  in your Rust cod
0120: 65 20 61 6e 64 20 68 65 6c 70 20 69 6d 70 72 6f  e and help impro
0130: 76 65 20 79 6f 75 72 20 52 75 73 74 20 63 6f 64  ve your Rust cod
0140: 65 2e 0a 23 20 4d 6f 72 65 20 64 65 74 61 69 6c  e..# More detail
0150: 73 20 61 74 20 68 74 74 70 73 3a 2f 2f 67 69 74  s at https://git
0160: 68 75 62 2e 63 6f 6d 2f 72 75 73 74 2d 6c 61 6e  hub.com/rust-lan
0170: 67 2f 72 75 73 74 2d 63 6c 69 70 70 79 0a 23 20  g/rust-clippy.# 
0180: 61 6e 64 20 68 74 74 70 73 3a 2f 2f 72 75 73 74  and https://rust
0190: 2d 6c 61 6e 67 2e 67 69 74 68 75 62 2e 69 6f 2f  -lang.github.io/
01a0: 72 75 73 74 2d 63 6c 69 70 70 79 2f 0a 0a 6e 61  rust-clippy/..na
01b0: 6d 65 3a 20 72 75 73 74 2d 63 6c 69 70 70 79 20  me: rust-clippy 
01c0: 61 6e 61 6c 79 7a 65 0a 0a 6f 6e 3a 0a 20 20 70  analyze..on:.  p
01d0: 75 73 68 3a 0a 20 20 20 20 62 72 61 6e 63 68 65  ush:.    branche
01e0: 73 3a 20 5b 20 22 6d 61 73 74 65 72 22 20 5d 0a  s: [ "master" ].
01f0: 20 20 70 75 6c 6c 5f 72 65 71 75 65 73 74 3a 0a    pull_request:.
0200: 20 20 20 20 23 20 54 68 65 20 62 72 61 6e 63 68      # The branch
0210: 65 73 20 62 65 6c 6f 77 20 6d 75 73 74 20 62 65  es below must be
0220: 20 61 20 73 75 62 73 65 74 20 6f 66 20 74 68 65   a subset of the
0230: 20 62 72 61 6e 63 68 65 73 20 61 62 6f 76 65 0a   branches above.
0240: 20 20 20 20 62 72 61 6e 63 68 65 73 3a 20 5b 20      branches: [ 
0250: 22 6d 61 73 74 65 72 22 20 5d 0a 20 20 73 63 68  "master" ].  sch
0260: 65 64 75 6c 65 3a 0a 20 20 20 20 2d 20 63 72 6f  edule:.    - cro
0270: 6e 3a 20 27 34 33 20 31 34 20 2a 20 2a 20 32 27  n: '43 14 * * 2'
0280: 0a 0a 6a 6f 62 73 3a 0a 20 20 72 75 73 74 2d 63  ..jobs:.  rust-c
0290: 6c 69 70 70 79 2d 61 6e 61 6c 79 7a 65 3a 0a 20  lippy-analyze:. 
02a0: 20 20 20 6e 61 6d 65 3a 20 52 75 6e 20 72 75 73     name: Run rus
02b0: 74 2d 63 6c 69 70 70 79 20 61 6e 61 6c 79 7a 69  t-clippy analyzi
02c0: 6e 67 0a 20 20 20 20 72 75 6e 73 2d 6f 6e 3a 20  ng.    runs-on: 
02d0: 75 62 75 6e 74 75 2d 6c 61 74 65 73 74 0a 20 20  ubuntu-latest.  
02e0: 20 20 70 65 72 6d 69 73 73 69 6f 6e 73 3a 0a 20    permissions:. 
02f0: 20 20 20 20 20 63 6f 6e 74 65 6e 74 73 3a 20 72       contents: r
0300: 65 61 64 0a 20 20 20 20 20 20 73 65 63 75 72 69  ead.      securi
0310: 74 79 2d 65 76 65 6e 74 73 3a 20 77 72 69 74 65  ty-events: write
0320: 0a 20 20 20 20 20 20 61 63 74 69 6f 6e 73 3a 20  .      actions: 
0330: 72 65 61 64 20 23 20 6f 6e 6c 79 20 72 65 71 75  read # only requ
0340: 69 72 65 64 20 66 6f 72 20 61 20 70 72 69 76 61  ired for a priva
0350: 74 65 20 72 65 70 6f 73 69 74 6f 72 79 20 62 79  te repository by
0360: 20 67 69 74 68 75 62 2f 63 6f 64 65 71 6c 2d 61   github/codeql-a
0370: 63 74 69 6f 6e 2f 75 70 6c 6f 61 64 2d 73 61 72  ction/upload-sar
0380: 69 66 20 74 6f 20 67 65 74 20 74 68 65 20 41 63  if to get the Ac
0390: 74 69 6f 6e 20 72 75 6e 20 73 74 61 74 75 73 0a  tion run status.
03a0: 20 20 20 20 73 74 65 70 73 3a 0a 20 20 20 20 20      steps:.     
03b0: 20 2d 20 6e 61 6d 65 3a 20 43 68 65 63 6b 6f 75   - name: Checkou
03c0: 74 20 63 6f 64 65 0a 20 20 20 20 20 20 20 20 75  t code.        u
03d0: 73 65 73 3a 20 61 63 74 69 6f 6e 73 2f 63 68 65  ses: actions/che
03e0: 63 6b 6f 75 74 40 76 34 0a 0a 20 20 20 20 20 20  ckout@v4..      
03f0: 2d 20 6e 61 6d 65 3a 20 49 6e 73 74 61 6c 6c 20  - name: Install 
0400: 52 75 73 74 20 74 6f 6f 6c 63 68 61 69 6e 0a 20  Rust toolchain. 
0410: 20 20 20 20 20 20 20 75 73 65 73 3a 20 61 63 74         uses: act
0420: 69 6f 6e 73 2d 72 73 2f 74 6f 6f 6c 63 68 61 69  ions-rs/toolchai
0430: 6e 40 31 36 34 39 39 62 35 65 30 35 62 66 32 65  n@16499b5e05bf2e
0440: 32 36 38 37 39 30 30 30 64 62 30 63 31 64 31 33  26879000db0c1d13
0450: 66 37 65 31 33 66 61 33 61 66 20 23 40 76 31 0a  f7e13fa3af #@v1.
0460: 20 20 20 20 20 20 20 20 77 69 74 68 3a 0a 20 20          with:.  
0470: 20 20 20 20 20 20 20 20 70 72 6f 66 69 6c 65 3a          profile:
0480: 20 6d 69 6e 69 6d 61 6c 0a 20 20 20 20 20 20 20   minimal.       
0490: 20 20 20 74 6f 6f 6c 63 68 61 69 6e 3a 20 73 74     toolchain: st
04a0: 61 62 6c 65 0a 20 20 20 20 20 20 20 20 20 20 63  able.          c
04b0: 6f 6d 70 6f 6e 65 6e 74 73 3a 20 63 6c 69 70 70  omponents: clipp
04c0: 79 0a 20 20 20 20 20 20 20 20 20 20 6f 76 65 72  y.          over
04d0: 72 69 64 65 3a 20 74 72 75 65 0a 0a 20 20 20 20  ride: true..    
04e0: 20 20 2d 20 6e 61 6d 65 3a 20 49 6e 73 74 61 6c    - name: Instal
04f0: 6c 20 72 65 71 75 69 72 65 64 20 63 61 72 67 6f  l required cargo
0500: 0a 20 20 20 20 20 20 20 20 72 75 6e 3a 20 63 61  .        run: ca
0510: 72 67 6f 20 69 6e 73 74 61 6c 6c 20 63 6c 69 70  rgo install clip
0520: 70 79 2d 73 61 72 69 66 20 73 61 72 69 66 2d 66  py-sarif sarif-f
0530: 6d 74 0a 0a 20 20 20 20 20 20 2d 20 6e 61 6d 65  mt..      - name
0540: 3a 20 52 75 6e 20 72 75 73 74 2d 63 6c 69 70 70  : Run rust-clipp
0550: 79 0a 20 20 20 20 20 20 20 20 72 75 6e 3a 0a 20  y.        run:. 
0560: 20 20 20 20 20 20 20 20 20 63 61 72 67 6f 20 63           cargo c
0570: 6c 69 70 70 79 0a 20 20 20 20 20 20 20 20 20 20  lippy.          
0580: 2d 2d 61 6c 6c 2d 66 65 61 74 75 72 65 73 0a 20  --all-features. 
0590: 20 20 20 20 20 20 20 20 20 2d 2d 6d 65 73 73 61           --messa
05a0: 67 65 2d 66 6f 72 6d 61 74 3d 6a 73 6f 6e 20 7c  ge-format=json |
05b0: 20 63 6c 69 70 70 79 2d 73 61 72 69 66 20 7c 20   clippy-sarif | 
05c0: 74 65 65 20 72 75 73 74 2d 63 6c 69 70 70 79 2d  tee rust-clippy-
05d0: 72 65 73 75 6c 74 73 2e 73 61 72 69 66 20 7c 20  results.sarif | 
05e0: 73 61 72 69 66 2d 66 6d 74 0a 20 20 20 20 20 20  sarif-fmt.      
05f0: 20 20 63 6f 6e 74 69 6e 75 65 2d 6f 6e 2d 65 72    continue-on-er
0600: 72 6f 72 3a 20 74 72 75 65 0a 0a 20 20 20 20 20  ror: true..     
0610: 20 2d 20 6e 61 6d 65 3a 20 55 70 6c 6f 61 64 20   - name: Upload 
0620: 61 6e 61 6c 79 73 69 73 20 72 65 73 75 6c 74 73  analysis results
0630: 20 74 6f 20 47 69 74 48 75 62 0a 20 20 20 20 20   to GitHub.     
0640: 20 20 20 75 73 65 73 3a 20 67 69 74 68 75 62 2f     uses: github/
0650: 63 6f 64 65 71 6c 2d 61 63 74 69 6f 6e 2f 75 70  codeql-action/up
0660: 6c 6f 61 64 2d 73 61 72 69 66 40 76 33 0a 20 20  load-sarif@v3.  
0670: 20 20 20 20 20 20 77 69 74 68 3a 0a 20 20 20 20        with:.    
0680: 20 20 20 20 20 20 73 61 72 69 66 5f 66 69 6c 65        sarif_file
0690: 3a 20 72 75 73 74 2d 63 6c 69 70 70 79 2d 72 65  : rust-clippy-re
06a0: 73 75 6c 74 73 2e 73 61 72 69 66 0a 20 20 20 20  sults.sarif.    
06b0: 20 20 20 20 20 20 77 61 69 74 2d 66 6f 72 2d 70        wait-for-p
06c0: 72 6f 63 65 73 73 69 6e 67 3a 20 74 72 75 65 0a  rocessing: true.