You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by po...@apache.org on 2020/10/06 18:10:30 UTC

[airflow] 02/05: Limits CodeQL workflow to run only in the Apache Airflow repo (#11264)

This is an automated email from the ASF dual-hosted git repository.

potiuk pushed a commit to branch v1-10-test
in repository https://gitbox.apache.org/repos/asf/airflow.git

commit 6c7a5109bce838dacd6ea61cceaa4f7b79cce23a
Author: Jarek Potiuk <ja...@polidea.com>
AuthorDate: Sun Oct 4 13:44:17 2020 +0200

    Limits CodeQL workflow to run only in the Apache Airflow repo (#11264)
    
    It has been raised quite a few times that workflow added in forked
    repositories might be pretty invasive for the forks - especially
    when it comes to scheduled workflows as they might eat quota
    or at least jobs for those organisations/people who fork
    repositories.
    
    This is not strictly necessary because Recently GitHub recognized this as being
    a problem and introduced new rules for scheduled workflows. But for people who
    are already forked, it would be nice to not run those actions. It is enough
    that the CodeQL check is done when PR is opened to the "apache/airflow"
    repository.
    
    Quote from the emails received by Github (no public URL explaining it yet):
    
    > Scheduled workflows will be disabled by default in forks of public repos and in
    public repos with no activity for 60 consecutive days.  We’re making two
    changes to the usage policy for GitHub Actions. These changes will enable
    GitHub Actions to scale with the incredible adoption we’ve seen from the GitHub
    community. Here’s a quick overview:
    
    > * Starting today, scheduled workflows will be disabled by default in new forks of
    public repositories.
    > * Scheduled workflows will be disabled in public repos with
    no activity for 60 consecutive days.
    
    (cherry picked from commit 1b9e59c31afcf3482aae8c0037ef7f41ff0cf31e)
---
 .github/workflows/codeql-analysis.yml | 1 +
 1 file changed, 1 insertion(+)

diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml
index 08ad9db..01bac7e 100644
--- a/.github/workflows/codeql-analysis.yml
+++ b/.github/workflows/codeql-analysis.yml
@@ -21,6 +21,7 @@ jobs:
         # Supported options are ['csharp', 'cpp', 'go', 'java', 'javascript', 'python']
         language: ['python', 'javascript']
 
+    if: github.repository == 'apache/airflow'
     steps:
       - name: Checkout repository
         uses: actions/checkout@v2