Skip to content

[Security] Pin GitHub Actions to a full-length commit SHA #601

[Security] Pin GitHub Actions to a full-length commit SHA

[Security] Pin GitHub Actions to a full-length commit SHA #601

name: Third-party licences
permissions: write-all
on:
pull_request:
branches: [ master ]
types: [ "opened", "synchronize" ]
push:
branches: [ master ]
jobs:
allowed:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@ee0669bd1cc54295c223e0bb666b733df41de1c5 # v2.7.0
with:
# pull the fork's HEAD instead of the main repo's
repository: ${{ github.event.pull_request.head.repo.full_name }}
ref: ${{ github.event.pull_request.head.sha }}
- name: Assert Glommio depends on crates permissively licensed
uses: EmbarkStudios/cargo-deny-action@3fd3802e88374d3fe9159b834c7714ec57d6c979 # v2.0.15
with:
log-level: warn
command: check licenses
arguments: --all-features