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
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ runs:
if: false
- uses: manusa/actions-setup-minikube@96202dee4ae1c2f46a62fe197273aaf22b83f42d # v2.16.1
if: false
- uses: matlab-actions/run-tests@353aee49b0edf62278c118a51b484d90bf6da1b7 # v3.1.0
Comment thread
potiuk marked this conversation as resolved.
- uses: matlab-actions/run-tests@4be3345d41da8b1bf8cc5cb01a5e19c4611cb15d # v3.0.0
if: false
- uses: matlab-actions/setup-matlab@a0180c939fb1a28de13f44f7b778b912384ced1f # v3.0.1
if: false
Expand Down
8 changes: 6 additions & 2 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
Expand All @@ -14,9 +15,11 @@
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
#

version: 2
updates:
- package-ecosystem: "github-actions"
- package-ecosystem: "github-actions" # zizmor: ignore[dependabot-cooldown] see #683 and #712
commit-message:
prefix: "action-allowlist-review"
directories:
Expand All @@ -30,7 +33,8 @@ updates:
# we're not comfortable trusting fully yet. See also
# https://github.com/apache/infrastructure-actions/issues/324
- dependency-name: "cpp-linter/cpp-linter-action"
versions: ">=2.16"
versions:
- ">=2.16"
Comment thread
potiuk marked this conversation as resolved.
open-pull-requests-limit: 50
- package-ecosystem: "github-actions"
schedule:
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/check-for-transitive-failures.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,6 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
persist-credentials: false
- uses: ./.github/actions/for-dependabot-triggered-reviews
56 changes: 56 additions & 0 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
#
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
#

name: "CodeQL"

on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
schedule:
- cron: '16 4 * * 1'

permissions:
contents: read

jobs:
analyze:
name: Analyze Actions
runs-on: ubuntu-slim
permissions:
contents: read
security-events: write
packages: read

steps:
- name: Checkout repository
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
with:
persist-credentials: false

- name: Initialize CodeQL
uses: github/codeql-action/init@c10b8064de6f491fea524254123dbe5e09572f13 # v4.35.1
with:
languages: actions

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@c10b8064de6f491fea524254123dbe5e09572f13 # v4.35.1
with:
category: "/language:actions"
10 changes: 6 additions & 4 deletions .github/workflows/pelican-action-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,20 +41,22 @@ jobs:
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
ref: ${{ env.SOURCE }}
persist-credentials: false
- name: Ignore the action checkout
run: |
echo "self/" >> .git/info/exclude
- name: Checkout self
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
path: self
persist-credentials: false
- name: Reset output directory ${{ env.TARGET }}
run: |
set +e
echo $TARGET
git branch -D $TARGET
git push origin --delete $TARGET
git branch -a | grep ${{ env.TARGET }}
git branch -a | grep ${TARGET}
true
- name: Should create ${{ env.TARGET }}
uses: ./self/pelican
Expand All @@ -66,7 +68,7 @@ jobs:
UNIT_TEST_A: This is UNIT_TEST_A
- name: Check ${{ env.TARGET }} was created
run: |
git checkout ${{ env.TARGET }}
git checkout ${TARGET}
{
echo "Commit build products"
echo -n "Initialise empty site"
Expand All @@ -92,7 +94,7 @@ jobs:
UNIT_TEST_A: This is UNIT_TEST_A updated
- name: Check ${{ env.TARGET }} is present and has been updated
run: |
git checkout ${{ env.TARGET }}
git checkout ${TARGET}
{
echo "Commit build products"
echo "Commit build products"
Expand All @@ -115,7 +117,7 @@ jobs:
UNIT_TEST_A: This is UNIT_TEST_A updated
- name: Check ${{ env.TARGET }} is present and has not been updated
run: |
git checkout ${{ env.TARGET }}
git checkout ${TARGET}
{
echo "Commit build products"
echo "Commit build products"
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/remove_expired.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,12 @@ jobs:
with:
persist-credentials: true
# Use PAT so the commit triggers other actions
token: ${{ secrets.ALLOWLIST_WORKFLOW_TOKEN || github.token }}
token: ${{ secrets.ALLOWLIST_WORKFLOW_TOKEN || github.token }} # zizmor: ignore[secrets-outside-env]

- name: Print token details
if: ${{ github.event_name != 'pull_request' }}
env:
GH_TOKEN: ${{ secrets.ALLOWLIST_WORKFLOW_TOKEN }}
GH_TOKEN: ${{ secrets.ALLOWLIST_WORKFLOW_TOKEN }} # zizmor: ignore[secrets-outside-env]
run: |
echo "::group::Token details"
echo "Token user and permissions:"
Expand Down Expand Up @@ -72,7 +72,7 @@ jobs:
- name: Commit and push changes
if: ${{ github.event_name != 'pull_request' }}
env:
GH_TOKEN: ${{ secrets.ALLOWLIST_WORKFLOW_TOKEN || github.token }}
GH_TOKEN: ${{ secrets.ALLOWLIST_WORKFLOW_TOKEN || github.token }} # zizmor: ignore[secrets-outside-env]
run: |
AUTHOR_NAME=$(gh api /user --jq '.login' 2>/dev/null || echo "asfgit")
AUTHOR_EMAIL=$(gh api /user --jq '.email // "\(.login)@users.noreply.github.com"' 2>/dev/null || echo "asfgit@users.noreply.github.com")
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/stash-action-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ jobs:
container: quay.io/centos/centos:stream8
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
persist-credentials: false

- name: Run action
continue-on-error: true
Expand All @@ -59,6 +61,8 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
persist-credentials: false

- name: Run unittests
shell: bash
Expand Down Expand Up @@ -136,6 +140,8 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
persist-credentials: false

- name: Test intra-workflow stash
uses: ./stash/restore
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/update_actions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,12 +46,12 @@ jobs:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
persist-credentials: true
token: ${{ secrets.ALLOWLIST_WORKFLOW_TOKEN || github.token }}
token: ${{ secrets.ALLOWLIST_WORKFLOW_TOKEN || github.token }} # zizmor: ignore[secrets-outside-env]

- name: Print token details
if: ${{ github.event_name != 'pull_request' }}
env:
GH_TOKEN: ${{ secrets.ALLOWLIST_WORKFLOW_TOKEN }}
GH_TOKEN: ${{ secrets.ALLOWLIST_WORKFLOW_TOKEN }} # zizmor: ignore[secrets-outside-env]
run: |
echo "::group::Token details"
echo "Token user and permissions:"
Expand Down Expand Up @@ -80,7 +80,7 @@ jobs:
- name: Commit and push changes
if: ${{ github.event_name != 'pull_request' }}
env:
GH_TOKEN: ${{ secrets.ALLOWLIST_WORKFLOW_TOKEN || github.token }}
GH_TOKEN: ${{ secrets.ALLOWLIST_WORKFLOW_TOKEN || github.token }} # zizmor: ignore[secrets-outside-env]
run: |
AUTHOR_NAME=$(gh api /user --jq '.login' 2>/dev/null || echo "asfgit")
AUTHOR_EMAIL=$(gh api /user --jq '.email // "\(.login)@users.noreply.github.com"' 2>/dev/null || echo "asfgit@users.noreply.github.com")
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/update_composite_action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,12 +45,12 @@ jobs:
with:
persist-credentials: true
# We have to use a PAT to commit the workflow file
token: ${{ secrets.ALLOWLIST_WORKFLOW_TOKEN || github.token }}
token: ${{ secrets.ALLOWLIST_WORKFLOW_TOKEN || github.token }} # zizmor: ignore[secrets-outside-env]

- name: Print token details
if: ${{ github.event_name != 'pull_request' }}
env:
GH_TOKEN: ${{ secrets.ALLOWLIST_WORKFLOW_TOKEN }}
GH_TOKEN: ${{ secrets.ALLOWLIST_WORKFLOW_TOKEN }} # zizmor: ignore[secrets-outside-env]
run: |
echo "::group::Token details"
echo "Token user and permissions:"
Expand Down Expand Up @@ -79,7 +79,7 @@ jobs:
- name: Commit and push changes
if: ${{ github.event_name != 'pull_request' }}
env:
GH_TOKEN: ${{ secrets.ALLOWLIST_WORKFLOW_TOKEN || github.token }}
GH_TOKEN: ${{ secrets.ALLOWLIST_WORKFLOW_TOKEN || github.token }} # zizmor: ignore[secrets-outside-env]
run: |
AUTHOR_NAME=$(gh api /user --jq '.login' 2>/dev/null || echo "asfgit")
AUTHOR_EMAIL=$(gh api /user --jq '.email // "\(.login)@users.noreply.github.com"' 2>/dev/null || echo "asfgit@users.noreply.github.com")
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/verify_dependabot_action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ permissions:

jobs:
verify:
if: github.actor == 'dependabot[bot]'
if: github.event.pull_request.user.login == 'dependabot[bot]'
Comment thread
potiuk marked this conversation as resolved.
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
Expand Down
46 changes: 46 additions & 0 deletions .github/workflows/zizmor.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
#
Comment thread
potiuk marked this conversation as resolved.
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
#

name: GitHub Actions Security Analysis with zizmor 🌈

on:
push:
branches: ["main"]
pull_request:
branches: ["**"]

permissions: {}

jobs:
zizmor:
name: Run zizmor 🌈
runs-on: ubuntu-latest
permissions: {}
steps:
- name: Checkout repository
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
persist-credentials: false

- name: Run zizmor 🌈
uses: zizmorcore/zizmor-action@71321a20a9ded102f6e9ce5718a2fcec2c4f70d8 # v0.5.2
with:
advanced-security: false
min-severity: medium
min-confidence: medium
Loading
Loading